Skip to content

ci(dependabot): put major updates in their own PR, so only minor and patch get auto-merged - #269

Merged
connabyss merged 1 commit into
mainfrom
claude/project-thread-tgzumh
Nov 27, 2026
Merged

connabyss merged 1 commit into
mainfrom
claude/project-thread-tgzumh

Conversation

@connabyss

Copy link
Copy Markdown
Owner

Requested by CH · project thread

What this changes

.github/dependabot.yml only. Each group (actions, python) now takes minor and patch updates only. Major updates go to a separate actions-major / python-major group, so they arrive as their own PR that you review by hand instead of auto-merging. Security updates are unchanged.

How it was checked

  • The YAML parses, and the groups come out as [['actions', 'actions-major'], ['python', 'python-major']].
  • No code changed, so python -m pytest isn't affected. CI runs it anyway.

Checklist

  • Conventional Commit title
  • Test that fails without the change: n/a (Dependabot config)
  • No version bump in pyproject.toml

Assisted-by: Claude Code

Lesson (3 lines)

  1. Minor and patch updates promise not to break things, so auto-merging them once tests pass is safe.
  2. Major updates are allowed to break things, so they need a human look.
  3. Dependabot groups with update-types sort updates into the right pile for you.

Generated by Claude Code

…patch updates get auto-merged

Assisted-by: Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0175Q8iDhm66k14xJCbRnxV7
@connabyss connabyss self-assigned this Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Bite ➖ Bite: nothing here to check

No commit in this pull request changed code: only docs, settings or tests.

How Bite checks

Bite asks one question about each change: if it disappeared, would any test notice? It takes the change out, runs your tests, and puts it back. What is Bite?

@connabyss
connabyss enabled auto-merge (squash) November 27, 2026 08:46
@connabyss
connabyss merged commit 4f8b3bb into main Nov 27, 2026
18 checks passed
@connabyss
connabyss deleted the claude/project-thread-tgzumh branch November 27, 2026 08:51
connabyss added a commit that referenced this pull request Nov 27, 2026
#271)

**What was wrong, what you changed, how you checked:**

Dependabot's minor/patch PRs were meant to auto-merge (see #269), and
the repo setting "Allow auto-merge" is on, but that setting only
*permits* auto-merge: something still has to switch it on for each PR.
Nothing did, so #270 sat open with every check green until it was merged
by hand.

This adds `.github/workflows/dependabot-auto-merge.yml`. On Dependabot
PRs it runs `gh pr merge --auto --squash`, but only for the minor/patch
group branches (`dependabot/github_actions/actions-<hash>`,
`dependabot/pip/python-<hash>`). The `-major` groups and any ungrouped
update (e.g. a security fix) are left for review. The "protect main"
ruleset's required checks still have to pass before anything merges. It
uses no actions and never checks out the PR's code.

One side effect: a merge made with the workflow token doesn't trigger
push workflows on main (e.g. release-drafter) for that commit. The next
normal merge catches up.

Fixes n/a (follow-up to #269 / #270)

- [x] The title says what changed, in the Conventional Commit style.
- [x] It links the issue it fixes: n/a, follow-up to #269 and #270.
- [x] For a bug fix: `tests/test_dependabot_auto_merge.py` fails without
the workflow (file missing) and passes with it (4 tests: minor/patch
groups match, major groups and single updates don't, group names match
dependabot.yml).
- [x] `python -m pytest` passes locally (467 passed, 1 skipped).

Assisted-by: Claude Code

---
_Generated by [Claude Code](https://claude.ai/code)_

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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