Skip to content

ci: add Dependabot auto-merge for patch and minor updates - #29

Merged
rpgmem merged 2 commits into
mainfrom
claude/dependabot-automerge
Apr 16, 2026
Merged

ci: add Dependabot auto-merge for patch and minor updates#29
rpgmem merged 2 commits into
mainfrom
claude/dependabot-automerge

Conversation

@rpgmem

@rpgmem rpgmem commented Apr 16, 2026

Copy link
Copy Markdown
Owner

Why

Dependabot generates weekly PRs for composer, npm, and GitHub Actions dependencies. Currently all require manual review and merge. Patch and minor bumps that pass all CI checks are safe to auto-merge, reducing manual git work.

What changed

New workflow .github/workflows/dependabot-automerge.yml:

  • Triggers on Dependabot PRs only (github.actor == 'dependabot[bot]')
  • Uses dependabot/fetch-metadata@v2 to determine semver update type
  • Auto-merges (squash) patch and minor updates after CI passes
  • Major version bumps still require manual review

How it works

  1. Dependabot opens a PR (e.g., phpstan 2.1.3 → 2.1.4)
  2. All CI checks run (PHPUnit, PHPStan, PHPCS, etc.)
  3. If checks pass AND update is patch/minor → auto-squash-merge
  4. If checks fail OR update is major → stays open for manual review

Test plan

  • Workflow file is valid YAML
  • Next Dependabot PR (Monday) triggers the workflow
  • Patch/minor updates auto-merge after CI
  • Major updates stay open

claude and others added 2 commits April 16, 2026 20:44
Automatically squash-merges Dependabot PRs that pass all CI checks when
the update is a semver patch or minor bump. Major version bumps still
require manual review.
@rpgmem
rpgmem merged commit 47ce709 into main Apr 16, 2026
13 checks passed
@rpgmem
rpgmem deleted the claude/dependabot-automerge branch April 16, 2026 23:02
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