Skip to content

ci: auto-merge safe Dependabot PRs and group them#54

Merged
Chineme123 merged 2 commits into
mainfrom
chore/dependabot-automerge
Jul 14, 2026
Merged

ci: auto-merge safe Dependabot PRs and group them#54
Chineme123 merged 2 commits into
mainfrom
chore/dependabot-automerge

Conversation

@Chineme123

Copy link
Copy Markdown
Owner

Summary

Fixes the reason 13 Dependabot PRs piled up. "Allow auto-merge" was already enabled on the repo and main already requires status checks, but nothing ever turned auto-merge on for a given PR — that step was missing.

  • New dependabot-auto-merge.yml: enables auto-merge on patch and minor updates, so they merge themselves once the required checks pass (build-and-test, frontend, commitlint, codeql x2). A major bump is deliberately left open for a human and gets a comment explaining why.
  • dependabot.yml now groups patch and minor updates into one PR per ecosystem instead of one PR per package, which is what caused the pile-up in the first place.

Security note: the workflow uses pull_request_target (needed for write permissions on Dependabot PRs) but never checks out the PR branch, so an untrusted dependency update cannot execute anything.

Linked spec / use case

n/a — repo hygiene (spec 0002 phase 7 governance follow-through).

How it was verified

Existing branch protection already requires the 5 checks, and allow_auto_merge is already true on the repo, so the workflow has everything it needs. It will be exercised by the next Dependabot run.

Definition of done (from CLAUDE.md)

"Allow auto-merge" was already on for the repo and main already requires
status checks, but nothing ever turned auto-merge ON for a given PR, so
Dependabot PRs just piled up (13 of them).

- New dependabot-auto-merge workflow: enables auto-merge on patch and minor
  updates, so they merge themselves once the required checks pass. A MAJOR
  bump (a compiler, a linter, a runtime) is left open for a human, with a
  comment saying so.
- dependabot.yml now groups patch and minor updates into one PR per
  ecosystem instead of one PR per package, which is what caused the pile-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Chineme123
Chineme123 enabled auto-merge July 14, 2026 21:15
@Chineme123
Chineme123 merged commit 9fb45ba into main Jul 14, 2026
6 checks passed
@Chineme123
Chineme123 deleted the chore/dependabot-automerge branch July 14, 2026 21:23
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