Skip to content

fix(renovate): use managerFilePatterns with latest Renovate validator#311

Merged
book000 merged 6 commits intorenovate/migrate-configfrom
copilot/sub-pr-253
Nov 25, 2025
Merged

fix(renovate): use managerFilePatterns with latest Renovate validator#311
book000 merged 6 commits intorenovate/migrate-configfrom
copilot/sub-pr-253

Conversation

Copy link
Contributor

Copilot AI commented Nov 24, 2025

The Renovate config migration introduced github-actions.managerFilePatterns which is valid according to the official Renovate schema, but requires a recent version of Renovate to validate correctly.

Changes

renovate.json

  • Uses github-actions.managerFilePatterns with proper regex format /^workflows/.*\\.ya?ml$/
  • This is the correct configuration option for customizing file patterns for the github-actions manager
  "github-actions": {
+   "managerFilePatterns": [
+     "/^workflows/.*\\.ya?ml$/"
    ]
  }

renovate-validate.yml

  • Replaced third-party rinchsan/renovate-config-validator@main action with official Renovate CLI validator
  • Updated to use renovate@latest to ensure compatibility with modern configuration options
  • Added set -e to both validation steps for fail-fast behavior on errors
  • Added glob pattern safety check to prevent issues when no files match

Root Cause

The github-actions.managerFilePatterns option is valid according to the official Renovate schema, but older versions of Renovate (installed by default) don't support it in manager-specific configuration blocks. Renovate v42.19.6+ properly supports this syntax.

Solution

By updating the validator to use renovate@latest, the configuration now uses the correct managerFilePatterns option as intended by the original migration and validates successfully.

Validation

  • ✅ Repository config validates successfully with latest Renovate CLI
  • ✅ All template configs validate successfully
  • ✅ Improved error handling ensures failures are caught immediately
  • ✅ Configuration uses the proper managerFilePatterns option

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…ctions config

Co-authored-by: book000 <8929706+book000@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate Renovate configuration options fix(renovate): replace invalid managerFilePatterns with fileMatch Nov 24, 2025
Copilot AI requested a review from book000 November 24, 2025 18:59
@book000 book000 marked this pull request as ready for review November 24, 2025 18:59
@book000
Copy link
Owner

book000 commented Nov 24, 2025

@copilot これでは、元のPRの内容をもとに戻すのみです。バリデーターが間違えていることも視野に入れ、最新のドキュメントをもとに正しい情報で更新してください。
また、バリデーターが誤っている場合は、適切にバリデーターが機能するように修正してください

…e CLI

Co-authored-by: book000 <8929706+book000@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 24, 2025

@copilot これでは、元のPRの内容をもとに戻すのみです。バリデーターが間違えていることも視野に入れ、最新のドキュメントをもとに正しい情報で更...

最新のRenovateドキュメントを確認しました。

問題の原因:

  1. github-actions.managerFilePatterns はRenovateスキーマで正式にサポートされていますが、使用していた rinchsan/renovate-config-validator@main が誤ってこれをエラーとして報告していました
  2. 公式のRenovate CLIバリデーターでは fileMatch を使用することで検証が通ります

実施した修正:

  1. github-actions.managerFilePatternsgithub-actions.fileMatch に変更(commit: 3069b4b
  2. バリデーターを rinchsan/renovate-config-validator@main から公式の npx renovate-config-validator に更新(commit: 90883c3

これにより、公式のRenovate CLIで検証が成功するようになりました。

Copilot AI and others added 2 commits November 24, 2025 19:11
Co-authored-by: book000 <8929706+book000@users.noreply.github.com>
Co-authored-by: book000 <8929706+book000@users.noreply.github.com>
Copilot AI changed the title fix(renovate): replace invalid managerFilePatterns with fileMatch fix(renovate): replace managerFilePatterns with fileMatch and update validator Nov 24, 2025
@book000
Copy link
Owner

book000 commented Nov 24, 2025

@copilot バリデーターを直したことで、managerFilePatternsが適切であるようになったのであれば、managerFilePatternsを用いてください

Co-authored-by: book000 <8929706+book000@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 24, 2025

@copilot バリデーターを直したことで、managerFilePatternsが適切であるようになったのであれば、managerFilePatternsを用いてください

ご指摘ありがとうございます。managerFilePatterns に戻しました。

調査の結果、github-actions.managerFilePatterns は最新バージョンのRenovate (v42.19.6) では正式にサポートされていますが、デフォルトでインストールされる古いバージョンではサポートされていないことが判明しました。

実施した修正 (commit: 5be1f56):

  1. fileMatchmanagerFilePatterns に変更
  2. バリデーターで renovate@latest を使用するように更新

これにより、本来の移行内容である managerFilePatterns を使用し、かつバリデーションも成功するようになりました。

Copilot AI changed the title fix(renovate): replace managerFilePatterns with fileMatch and update validator fix(renovate): use managerFilePatterns with latest Renovate validator Nov 24, 2025
@book000 book000 merged commit 808f55e into renovate/migrate-config Nov 25, 2025
@book000 book000 deleted the copilot/sub-pr-253 branch November 25, 2025 00:03
book000 added a commit that referenced this pull request Nov 25, 2025
* chore(config): migrate config renovate.json

* fix(renovate): use managerFilePatterns with latest Renovate validator (#311)

Co-authored-by: book000 <8929706+book000@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: book000 <8929706+book000@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants