Skip to content

Retry Dependabot auto-merge when the base branch just moved - #25

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/dependabot-automerge-retry
Nov 24, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/dependabot-automerge-retry

Conversation

@bryanwieg

Copy link
Copy Markdown
Owner

Two Dependabot PRs whose checks finish seconds apart race: the first merge moves main, and the second gh pr merge is refused with Base branch was modified, leaving the PR open (#24, after #23 merged at the same moment).

The merge step now retries only that refusal, up to five times with a growing delay (5–20 s). Any other error still fails immediately.

Checked by running the step's script against a stubbed gh: success on first try, success after two refusals, failure after five, immediate failure on other errors; bash -n and shellcheck clean.

🤖 Generated with Claude Code

Two Dependabot PRs whose checks finish seconds apart race: the second
merge is refused with "Base branch was modified" and the PR stays open
(PR #24). Retry that refusal up to five times with a growing delay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bryanwieg bryanwieg added the automerge-squash Squash-merge and release once CI passes label Nov 24, 2026
@github-actions
github-actions Bot merged commit 0e22dbc into main Nov 24, 2026
3 checks passed
@github-actions
github-actions Bot deleted the fix/dependabot-automerge-retry branch November 24, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge-squash Squash-merge and release once CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant