chore(ci): merge OpenAPI sync PR via direct merge instead of auto-merge#280
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:Change
Replace the auto-merge step with a direct merge: wait for the required
broken-links-and-openapicheck 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
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_mergeremainsfalse, permanently denying the auto-merge queue that was previously abused.🤖 Generated with Claude Code