Skip to content

chore: group Dependabot updates and fix auto-merge method#32

Merged
JohnRDOrazio merged 2 commits intomainfrom
chore/dependabot-config-and-auto-merge-fix
May 2, 2026
Merged

chore: group Dependabot updates and fix auto-merge method#32
JohnRDOrazio merged 2 commits intomainfrom
chore/dependabot-config-and-auto-merge-fix

Conversation

@JohnRDOrazio
Copy link
Copy Markdown
Member

Summary

Two related changes to make the Dependabot pipeline both quieter and actually functional.

1. chore(deps) — group minor/patch updates and document the SHA-pin policy

  • Grouping: minor + patch bumps for npm and github-actions now batch into one weekly PR per ecosystem instead of one per dependency. Majors stay ungrouped so they keep human review.
  • Policy comment: a header note in .github/dependabot.yml records that workflow files must reference third-party actions by commit SHA with a trailing version comment (actions/checkout@<sha> # v6). Dependabot rewrites both the SHA and the comment atomically; tag-only pins are forbidden because they widen the trust surface silently.

2. fix(actions) — use merge commit instead of squash for Dependabot auto-merge

The repo allows merge commits only (allow_squash_merge and allow_rebase_merge are both off). The auto-merge workflow was calling gh pr merge --auto --squash, which the GitHub merge endpoint rejected with Squash merges are not allowed on this repository. Every recent non-major Dependabot PR failed at the merge step; only major-version runs passed, because their merge step was filtered out by the update-type guard — that masked the breakage in the run history.

Switching to --merge aligns the workflow with the repo's policy.

Test plan

JohnRDOrazio and others added 2 commits May 2, 2026 04:47
- Group npm and github-actions minor/patch bumps into single weekly PRs
  (majors stay individual so they retain human review).
- Add a header comment recording the action-pin policy: workflows must
  reference third-party actions by commit SHA with a trailing version
  comment, and Dependabot rewrites both atomically. Tag-only pins are
  forbidden.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…merge

The repo only allows merge commits (allow_squash_merge and
allow_rebase_merge are both off). The auto-merge workflow was calling
'gh pr merge --auto --squash', which the GitHub merge endpoint rejects
with 'Squash merges are not allowed on this repository'. Every recent
non-major Dependabot PR failed at the merge step; only major-version
runs passed because their merge step was filtered out by the
update-type guard, masking the breakage.

Switching to '--merge' aligns the workflow with the repo's merge policy.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@JohnRDOrazio JohnRDOrazio merged commit 223d76d into main May 2, 2026
1 check passed
@JohnRDOrazio JohnRDOrazio deleted the chore/dependabot-config-and-auto-merge-fix branch May 2, 2026 02:52
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