Skip to content

fix(renovate): actions の PR が automerge されない原因の rebaseWhen を修正する - #503

Merged
rito528 merged 1 commit into
mainfrom
fix/renovate-rebase-when-blocks-automerge
Jul 26, 2026
Merged

fix(renovate): actions の PR が automerge されない原因の rebaseWhen を修正する#503
rito528 merged 1 commit into
mainfrom
fix/renovate-rebase-when-blocks-automerge

Conversation

@rito528

@rito528 rito528 commented Jul 26, 2026

Copy link
Copy Markdown
Owner

概要

  • action 系の依存更新 PR が automergeSchedule: ["on sunday"] を設定しているにもかかわらず、日曜になっても自動マージされない問題を修正する
  • 原因は rebaseWhen: "never"。Renovate は既存ブランチがある状態で rebaseWhen === "never" を検出すると、processBranchno-work で早期 return する。automerge を判定する checkAutoMerge はその後段にあるため、automergeSchedule は評価されず、曜日に関係なく自動マージされない状態だった
  • 早期 return の条件は rebaseWhen === "never" のみなので conflicted に変更する。base ブランチが進んだだけでは rebase しない挙動は保たれるため、force push で minimumReleaseAge の判定がやり直しになる問題 (c8bde1c) も再発しない

確認事項

補足

  • 効果が確認できるのは次の日曜。それまでに chore(deps): update actions/checkout digest to 3d3c42e #485 をマージしたい場合は、PR 本文の rebase チェックボックスを入れると dependencyDashboardCheck が立って早期 return を回避できる
  • 7/19 の internalChecksFilter: "none" 追加 (3c1a1a9) は 21:36 JST にマージされ、その 1 分前が最後の Renovate 実行だったため効果が検証されていない。修正内容自体は妥当だが、automerge されない真因はこちらだった

🤖 Generated with Claude Code

rebaseWhen: never を指定していると、Renovate は既存ブランチを見つけた
時点で processBranch を no-work で打ち切り、PR 処理そのものに入らない。
automerge を判定する checkAutoMerge はその後段にあるため、
automergeSchedule: on sunday は評価されず、曜日に関係なく action 系の
PR が自動マージされない状態になっていた。

早期 return の条件は rebaseWhen === "never" のみなので、conflicted に
変えることで automerge の経路まで到達する。base ブランチが進んだだけで
は rebase しない挙動は保たれるため、force push で minimumReleaseAge の
判定がやり直しになる問題も再発しない。

Co-authored-by: Claude <noreply@anthropic.com>
@rito528
rito528 merged commit f6e5536 into main Jul 26, 2026
10 checks passed
@rito528
rito528 deleted the fix/renovate-rebase-when-blocks-automerge branch July 26, 2026 14:18
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.

1 participant