ci: author, review, and automerge regen prs via github apps#26
Merged
Conversation
deny paths now clear stale auto-merge before commenting and fail the step if the disable errors, instead of best-effort || true. an empty changed-files listing no longer counts as an allowlist pass. renames are checked on both sides everywhere. approvals are pinned to the head commit.
pin the approval to the head captured before the allowlist run, then re-read the head after submitting; if it moved, dismiss the approval and deny. dismiss_stale_reviews (now enabled) covers pushes after the review; this covers the window before it.
a dismiss failure under set -e must not skip deny, which is the hard gate that clears stale auto-merge. dismiss_stale_reviews already covers the dismissal in the normal case.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit be69154. Configure here.
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.

Regen PRs are now authored with a convoy-sdk-bot GitHub App token (replacing the personal PAT), so CI triggers as before without depending on a user account. A separate reviewer app approves only diffs whose changed files all match the repo's generated paths; anything else is left unapproved with a comment for human review. Auto-merge is queued after approval, so unresolved finding conversations and the required checks (tests, Cursor Bugbot, Cursor Security Agent) still block the merge.
Note
Medium Risk
Adds automated approval and auto-merge with path allowlists; misconfiguration or a bypassed gate could merge unexpected changes, though the script is designed to deny by default and require checks.
Overview
Replaces the SDK bot PAT with a minted convoy-sdk-bot GitHub App token for checkout, push, and PR creation so
pull_requestCI still runs; commits are attributed toconvoy-sdk-bot[bot]instead ofgithub-actions[bot].When regeneration produces a diff, a new step mints a reviewer app token and runs an approve + auto-merge script. It only approves PRs on
main, authored by the bot, whose head matches the commit this run pushed, and whose changed files are limited to generatedsrc/convoy/*(excluding hand-ownedutils/andpy.typed). Any gate failure fails open: comments on the PR, clears auto-merge when needed, and skips approval. On success it submits an approval pinned to the validated commit, dismisses if the head races during submission, then enables squash auto-merge via the bot token (notGITHUB_TOKEN) so downstream publish workflows still fire.Reviewed by Cursor Bugbot for commit be69154. Bugbot is set up for automated code reviews on this repo. Configure here.