Skip to content

Auto-approve and merge non-major Dependabot PRs - #53

Open
proxymeshai wants to merge 3 commits into
mainfrom
cursor/dependabot-auto-approve-merge-c08c
Open

Auto-approve and merge non-major Dependabot PRs#53
proxymeshai wants to merge 3 commits into
mainfrom
cursor/dependabot-auto-approve-merge-c08c

Conversation

@proxymeshai

@proxymeshai proxymeshai commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Dependabot PRs were enabling auto-merge but staying BLOCKED with REVIEW_REQUIRED because branch protection needs an approving review.

This updates dependabot-auto-merge to:

  • Auto-approve non-major Dependabot PRs
  • Enable squash auto-merge for those PRs
  • Match on PR author (dependabot[bot]) instead of github.actor, so branch updates still trigger the workflow
  • Leave major updates for human review (same policy as Dependabot grouping)

Bugbot follow-up

Fail closed when update-type is empty/unknown (can happen after human branch updates if commit verification fails). Use skip-commit-verification so metadata still parses after merge commits, and only auto-approve/merge explicit semver-minor / semver-patch updates.

Repo setting to confirm

Settings → Actions → General → Allow GitHub Actions to create and approve pull requests must be enabled, or the approve step will fail.

After merge

Update open Dependabot PR branches (or @dependabot rebase) so they re-run against the new workflow on main.

Slack Thread

Open in Web Open in Cursor 

Branch protection requires reviews, so enabling auto-merge alone left
Dependabot PRs blocked. Restore approval, keep major updates for human
review, and match on the PR author so branch updates still trigger.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
@proxymeshai
proxymeshai marked this pull request as ready for review September 3, 2026 22:21

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0a13c4a. Configure here.

run: gh pr merge --auto --squash "$PR"

- name: Approve pull request
if: steps.meta.outputs.update-type != 'version-update:semver-major'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Branch updates auto-merge major PRs

High Severity

The job now runs on human-triggered branch updates, but dependabot/fetch-metadata by default requires every commit to come from dependabot[bot]. An Update branch merge commit fails that check, so update-type stays empty. The != version-update:semver-major conditions then treat the PR as eligible and can approve and auto-merge a major update that was meant for human review.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0a13c4a. Configure here.

After a human branch update, fetch-metadata can leave update-type empty
if commit verification fails, and != semver-major would still approve.
Skip commit verification for merge commits, and only auto-approve/merge
explicit minor or patch updates.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
@cursor

cursor Bot commented Sep 3, 2026

Copy link
Copy Markdown

cursor review

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.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