add automated PR review workflow with read-only token#227
add automated PR review workflow with read-only token#227
Conversation
|
ProviderModelNotFoundError |
|
@elithrar Bonk workflow failed. Check the logs for details. View workflow run · To retry, trigger Bonk again. |
commit: |
|
This comment was marked as outdated.
This comment was marked as outdated.
|
remote: Internal Server Error |
|
/bonk Refer to the latest ask-bonk changes in ask-bonk/ask-bonk#138 (now merged). Use them to understand the Bonk API and then:
When you make changes, self-review again per our instructions. |
|
To https://github.com/cloudflare/vinext.git |
|
(When you forget that you didn’t give the app workflow edit permissions for security reasons) |
Every PR currently requires a manual
/bonkinvocation for AI review. This adds an automated review that runs on every new PR, using a read-only scoped token so the reviewer agent physically cannot push code.Depends on ask-bonk/ask-bonk#138 which adds the
token_permissionsinput..github/workflows/new-pr-review.yml— triggers onpull_request: [opened], usestoken_permissions: READ_ONLYto scope the installation token to read-only (can comment/review, cannot push), runs therevieweragent with Kimi K2, skips bot/dependabot PRs, 15min timeout.github/bonk_reviewer.md— hardened reviewer prompt with anti-injection anchoring (system boundary at top and bottom), vinext-specific review checklist (server parity, RSC/SSR boundary, Next.js compat), clear read-only constraints