Skip to content

ci: author, review, and automerge regen prs via github apps - #25

Merged
mekilis merged 1 commit into
mainfrom
ci/sdk-regen-auto-review
Jul 20, 2026
Merged

ci: author, review, and automerge regen prs via github apps#25
mekilis merged 1 commit into
mainfrom
ci/sdk-regen-auto-review

Conversation

@mekilis

@mekilis mekilis commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

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
Automated approve-and-merge on regen PRs depends on correct app secrets and path allowlist; a misconfiguration could approve or merge unintended diffs, though checks and allowlist gates limit blast radius.

Overview
SDK generation now mints a convoy-sdk-bot GitHub App token for checkout, push, and opening regen PRs instead of SDK_BOT_PAT / GITHUB_TOKEN, so pull_request CI still runs. Commits are attributed to convoy-sdk-bot[bot].

After a regen diff is pushed, a second step uses an SDK reviewer app to approve only PRs authored by that bot whose changed files are entirely under lib/convoy_api/ or lib/convoy_api.rb (matching scripts/generate.sh). Wrong author or out-of-allowlist paths get a PR comment and no approval (fail open to humans). On success it submits an APPROVE review and enables squash auto-merge via the bot token so downstream publish workflows still fire.

Reviewed by Cursor Bugbot for commit 81687b9. Bugbot is set up for automated code reviews on this repo. Configure here.

@mekilis
mekilis merged commit cbb96b8 into main Jul 20, 2026
3 checks passed
@mekilis
mekilis deleted the ci/sdk-regen-auto-review branch July 20, 2026 19:08
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