Repository navigation
ci: add a PR-Agent review workflow for same-repo pull requests - #240
Merged
Merged
Conversation
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.
Adds a GitHub Actions workflow that runs PR-Agent as an automated reviewer on pull requests, the stand-in for cubic while its quota is spent (resumes 2 December 2026).
What it does
.github/workflows/pr-agent.yml, job namedPR-Agent, triggers onpull_request(opened, synchronize, reopened). Neverpull_request_target.head.repo.full_name == github.repository, so a fork PR never sees the secret.contents: read,pull-requests: write, plusissues: write, which PR-Agent's installation docs list too (its summary comment goes through the issues API). Workflow-level default iscontents: read.the-pr-agent/pr-agent(qodo-ai/pr-agentredirects), so the workflow names the canonical owner.PR-Agent skipped) instead of failing.Operator items
OPENROUTER_API_KEY. The provider is decided: OpenRouter. The workflow reads that secret; the model and fallback models can be overridden with the repository variablesPR_AGENT_MODELandPR_AGENT_FALLBACK_MODELS./reviewcomment command in the machine-local config needs anissue_commenttrigger, which is out of scope here./bot-reviewcoverageChecked
~/.config/dotfiles/bot-review.json(not edited) and thepr_agententry inbot-review.json.tpl.github-actions[bot], gating check namePR-Agent(the job name), repo config path.pr_agent.toml, drafts reviewed (this workflow reviews drafts too).<!-- pr-agent-run: id=... head=<sha> status=success -->,<!-- pr-agent-dedup: ... -->). Without something that writes them,/bot-reviewcannot tie a review to a head or key findings. Needs a follow-up (a small step in this workflow, or loosening the entry's regexes).Verification
actionlint and yamllint clean. The workflow itself has not run: the secret is absent, so CI will show the skip notice.
Cadence records (run 000002, head 1bd2724)
Steps at
convergence(run000002)Ended on
1bd27244cacb.Steps at
pre-implementation(run000002)Ended on
1bd27244cacb.Steps at
pre-ci(run000002)Ended on
1bd27244cacb.Steps at
pre-pr(run000002)Ended on
1bd27244cacb.Steps at
post-pr(run000002)Ended on
1bd27244cacb.