Skip to content

ci: auto-merge patch/minor Dependabot PRs - #36

Merged
petercorke merged 1 commit into
mainfrom
ci/dependabot-auto-merge
Aug 2, 2026
Merged

petercorke merged 1 commit into
mainfrom
ci/dependabot-auto-merge

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

  • Dependabot PRs (Bump actions/checkout from 6 to 7 #19-23) sat unattended for over a month, each accumulating enough drift from main that merging required a full manual rebase + CI retry cycle.
  • Adds the standard GitHub-documented auto-merge recipe: dependabot/fetch-metadata reads the update type, and patch/minor bumps get gh pr merge --auto --merge enabled as soon as their own CI is green. Major bumps are intentionally excluded -- still require manual review (matches how Bump actions/checkout from 6 to 7 #19/Bump actions/setup-python from 6 to 7 #21, both major version jumps, were handled this session).
  • Uses --merge (not --squash) to match this repo's existing merge-commit convention.
  • Relies on the repo's allow_auto_merge setting (enabled) and the branch-protection required check already narrowed to just All tests passed -- auto-merge still can't complete until that passes, so nothing merges without real CI signal.

Test plan

  • YAML validated with python3 -c "import yaml; yaml.safe_load(...)".
  • First real signal will be the next scheduled Dependabot run (monthly, per dependabot.yml) -- can't fully dry-run this without a live Dependabot-authored PR.

Dependabot PRs were sitting unattended for over a month (opened
2026-06-16, still open 2026-08-02), so each one needed a full manual
rebase against a month of main's drift before it could merge. Auto-
merging low-risk patch/minor bumps as soon as CI is green keeps them
from ever accumulating that cost. Major bumps are deliberately
excluded and still require manual review/merge.
@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 high

Alerts:
⚠ 1 issue (≤ 0 issues of at least minor severity)

Results:
1 new issue

Category Results
Security 1 high

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit a1acd4e into main Aug 2, 2026
16 of 17 checks passed
@petercorke
petercorke deleted the ci/dependabot-auto-merge branch August 10, 2026 05:37
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