mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #227] add automated PR review workflow with read-only token #402
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#402
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/227
Author: @elithrar
Created: 3/2/2026
Status: 🔄 Open
Base:
main← Head:feat/auto-pr-review📝 Commits (4)
1bc6b61add automated PR review workflow with read-only token3c9d8faharden auto-review: base branch checkout, drop install, no approveab0fd10harden reviewer agents: fix permissions, env var, prompt structure61a39fbUsedNO_PUSH— noPUSH_ONLYpreset.📊 Changes
3 files changed (+157 additions, -6 deletions)
View changed files
➕
.github/workflows/new-pr-review.yml(+46 -0)➕
.opencode/agents/auto-reviewer.md(+102 -0)📝
.opencode/agents/reviewer.md(+9 -6)📄 Description
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🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.