Repository navigation
ci: add Robin review on every pull request revision - #1906
LinguineCode wants to merge 1 commit into
Conversation
Review every revision of a pull request before merge, using the same Robin setup as the backend repositories.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
There was a problem hiding this comment.
The Robin Hood of code review
Heads up: this is a point-in-time review. Push fixes freely, then comment
/robinwhenever you want another pass.
Summary
The workflow pins its actions and limits the generated app token to read access plus pull-request writes. However, automatic reviews of pull requests from forks will fail because GitHub does not expose repository secrets to workflows triggered by those pull requests, so the app-token step cannot authenticate.
| - uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 | ||
| id: app-token | ||
| with: | ||
| client-id: ${{ secrets.ROBIN_CLIENT_ID }} |
There was a problem hiding this comment.
Robin —
For pull_request events from forks, GitHub withholds repository secrets. The app-token step therefore cannot receive ROBIN_CLIENT_ID (and the later LLM_API_KEY is also unavailable), so the automatic review job fails before Robin can review the PR.
Recommendation: Choose an explicit safe policy for fork PRs: skip automatic reviews and rely on the authorized issue-comment path, or provide a separately secured mechanism for reviewing them. Do not switch to pull_request_target without ensuring untrusted PR content cannot execute with these credentials.
|
Closing: app-frontend already has automated review (CodeRabbit, cubic, Copilot), so Robin isn't needed here. |
Behavior
Adds Robin, the AI code reviewer the backend repositories use, so every revision of a pull request is reviewed before merge. Same configuration as app-backend.
Impact
CI only: a new
reviewworkflow job and its.github/robin.ymlconfig. No application code changes.Verification
Robin should review this PR itself once the workflow is on the branch.
Part of OPS-333
Summary by cubic
Adds Robin AI code review so every pull request revision is automatically reviewed before merge, matching the configuration used by the backend repositories.
Things to verify
ROBIN_CLIENT_ID,ROBIN_PRIVATE_KEY, andLLM_API_KEYsecrets or theLLM_BASE_URLandLLM_MODELvars aren't set at repo or org level.blacksmith-2vcpu-ubuntu-2604is a self-hosted runner, so confirm it's registered for this repository./robin,/review,/summary, and/helplet owners, members, and collaborators trigger a review on demand.Written for commit 2836864. Summary will update on new commits.