8000 ci: add a PR-Agent review workflow for same-repo pull requests by inkatze · Pull Request #240 · inkatze/dotfiles · GitHub
[go: up one dir, main page]

Skip to content

ci: add a PR-Agent review workflow for same-repo pull requests - #240

Merged
inkatze merged 3 commits into
mainfrom
planwright/flight/mc-dotfiles-ad-hoc-6cb55c6a
Nov 11, 2026
Merged

inkatze merged 3 commits into
mainfrom
planwright/flight/mc-dotfiles-ad-hoc-6cb55c6a

Conversation

@inkatze
@inkatze inkatze commented Nov 11, 2026 •
Copy link
Copy Markdown
Owner

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 named PR-Agent, triggers on pull_request (opened, synchronize, reopened). Never pull_request_target.
  • The job runs only when head.repo.full_name == github.repository, so a fork PR never sees the secret.
  • Permissions: contents: read, pull-requests: write, plus issues: write, which PR-Agent's installation docs list too (its summary comment goes through the issues API). Workflow-level default is contents: read.
  • The action is pinned to the v0.50.0 commit. The repository now lives at the-pr-agent/pr-agent (qodo-ai/pr-agent redirects), so the workflow names the canonical owner.
  • With the secret absent, the job succeeds and prints a visible notice (PR-Agent skipped) instead of failing.

Operator items

  1. Add the repository secret OPENROUTER_API_KEY. The provider is decided: OpenRouter. The workflow reads that secret; the model and fallback models can be overridden with the repository variables PR_AGENT_MODEL and PR_AGENT_FALLBACK_MODELS.
  2. Optional: a rerun trigger. The /review comment command in the machine-local config needs an issue_comment trigger, which is out of scope here.

/bot-review coverage

Checked ~/.config/dotfiles/bot-review.json (not edited) and the pr_agent entry in bot-review.json.tpl.

  • Covered: login github-actions[bot], gating check name PR-Agent (the job name), repo config path .pr_agent.toml, drafts reviewed (this workflow reviews drafts too).
  • Not covered yet: the entry matches markers PR-Agent does not emit by default (<!-- pr-agent-run: id=... head=<sha> status=success -->, <!-- pr-agent-dedup: ... -->). Without something that writes them, /bot-review cannot 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 (run 000002)

# Step Kind Target Hosting Backend Session Head Start End Outcome Excerpt Output
1 polish skill /home/inkatze/.claude/plugins/cache/planwright/planwright/0.74.0/skills/polish/SKILL.md in-session in-session 1bd2724 2026-11-11T21:13:53Z 2026-11-11T22:27:20Z passed (degraded: isolated step hosted in-session (hub stopgap, no tmux steps); end is the time of recording)
2 panel-review skill /home/inkatze/.claude/skills/panel-review/SKILL.md in-session in-session 1bd2724 2026-11-11T21:20:09Z 2026-11-11T22:27:27Z passed (degraded: isolated step hosted in-session (hub stopgap, no tmux steps); end is the time of recording; gemini one pass, all lenses none, nothing applied)

Ended on 1bd27244cacb.

Steps at pre-implementation (run 000002)

# Step Kind Target Hosting Backend Session Head Start End Outcome Excerpt Output
none

Ended on 1bd27244cacb.

Steps at pre-ci (run 000002)

# Step Kind Target Hosting Backend Session Head Start End Outcome Excerpt Output
none

Ended on 1bd27244cacb.

Steps at pre-pr (run 000002)

8000
# Step Kind Target Hosting Backend Session Head Start End Outcome Excerpt Output
none

Ended on 1bd27244cacb.

Steps at post-pr (run 000002)

# Step Kind Target Hosting Backend Session Head Start End Outcome Excerpt Output
1 bot-review skill /home/inkatze/.claude/skills/bot-review/SKILL.md in-session in-session 1bd2724 2026-11-11T22:29:21Z 2026-11-11T22:29:21Z skipped: missing (cubic monthly quota reached, resumes 2 December 2026; PR-Agent workflow is this PR and has not run (secret absent)) (degraded: isolated step hosted in-session (hub stopgap))

Ended on 1bd27244cacb.

@inkatze
inkatze marked this pull request as ready for review November 11, 2026 22:32
@inkatze
inkatze merged commit c300705 into main Nov 11, 2026
6 checks passed
@inkatze
inkatze deleted the planwright/flight/mc-dotfiles-ad-hoc-6cb55c6a branch November 11, 2026 22:48
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

0