feat(new-project): Renovate automerge を有効化(allow_auto_merge + 承認0)#59
Merged
Conversation
- 手順4: repo 設定に allow_auto_merge=true を追加。無効だと Renovate は GitHub ネイティブ auto-merge を使えず自前 automerge にフォールバックし、 定期実行時しか効かず取りこぼす。 - 手順5: ruleset の required_approving_review_count を 0 に変更 (require_code_owner_review も false)。承認必須だと bot は自分の PR を 承認できず automerge が完走しないため。CI ゲートは required_status_checks で別途担保される。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
renovate-configプリセットを使う repo で Renovate の auto-merge がほとんど機能していなかった。原因は2つ:allow_auto_mergeが無効 → Renovate が GitHub ネイティブ auto-merge を使えず、自前 automerge にフォールバック。定期実行時に PR が全 green のときしか効かず取りこぼす。renovate-config(承認0)以外は全 PR が手動マージだった。変更
new-project スキルの runbook を更新し、新規 repo がデフォルトで Renovate automerge できるようにする:
gh api ... -F allow_auto_merge=trueを追加。required_approving_review_countを1 → 0、require_code_owner_reviewをtrue → falseに。CI ゲートはrequired_status_checksで別途担保。補足
allow_auto_merge=true有効化&承認0化を適用済み。chezmoi applyが必要。