Skip to content

chore(ci): merge OpenAPI sync PR via direct merge instead of auto-merge#280

Merged
prrao87 merged 1 commit into
mainfrom
chore/sync-openapi-direct-merge
Jun 22, 2026
Merged

chore(ci): merge OpenAPI sync PR via direct merge instead of auto-merge#280
prrao87 merged 1 commit into
mainfrom
chore/sync-openapi-direct-merge

Conversation

@prrao87

@prrao87 prrao87 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

What

The Sync OpenAPI Spec workflow merged its PR with peter-evans/enable-pull-request-automerge, which requires the repo-level Allow auto-merge setting. That setting is now disabled (to stop an external agent from queueing auto-merges without human review), so the step fails:

GraphQL: Auto merge is not allowed for this repository (enablePullRequestAutoMerge)

Change

Replace the auto-merge step with a direct merge: wait for the required broken-links-and-openapi check to pass, then squash-merge immediately. A direct merge does not depend on the auto-merge toggle, so it can stay off permanently.

Why this is safe

  • The trusted sync identity (DOCS_BOT_TOKEN) holds the Repository admin ruleset bypass, so it clears the required-review gate while untrusted actors (e.g. the mintlify agent) stay blocked.
  • allow_auto_merge remains false, permanently denying the auto-merge queue that was previously abused.

🤖 Generated with Claude Code

The sync workflow used peter-evans/enable-pull-request-automerge, which
requires the repo-level "Allow auto-merge" setting. That setting is now
disabled (to stop an external agent from queueing auto-merges without
review), so the auto-merge step fails with "Auto merge is not allowed for
this repository".

Replace it with a direct merge: wait for the required check to pass, then
squash-merge immediately. A direct merge does not depend on the auto-merge
toggle, so it can stay off permanently. The trusted sync identity has the
Repository-admin ruleset bypass, so it merges through the required-review
gate while untrusted actors remain blocked.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@prrao87 prrao87 merged commit 74aadf7 into main Jun 22, 2026
2 checks passed
@prrao87 prrao87 deleted the chore/sync-openapi-direct-merge branch June 22, 2026 14:22
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