Skip to content

Commit fa39559

Browse files
karlkeppner1claude
andcommitted
ci: add realio-pr-reviewer caller
Org PR reviewer (realiotech/pr-reviewer via realiotech/workflows): auto-reviews PRs + @realio-pr-reviewer follow-ups. Advisory only; does not gate merges. Dormant until the realio-pr-reviewer App is installed on this repo. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 591dc13 commit fa39559

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/pr-review.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Calls the org reusable PR reviewer (realiotech/pr-reviewer via realiotech/workflows).
2+
# Auto-reviews PRs; reply "@realio-pr-reviewer <explain|fix|dismiss|re-review> ..."
3+
# in a PR comment to drive follow-ups. Advisory only — does not gate merges.
4+
name: pr-review
5+
6+
on:
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
issue_comment:
10+
types: [created]
11+
12+
# Least-privilege: the reviewer writes via its GitHub App token, not GITHUB_TOKEN.
13+
permissions:
14+
contents: read
15+
16+
# Coalesce rapid pushes / repeated comments; cancel superseded runs (per PR + event).
17+
concurrency:
18+
group: pr-review-${{ github.event.pull_request.number || github.event.issue.number }}-${{ github.event_name }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
review:
23+
# PRs always; PR comments only when they actually mention the bot — so a
24+
# casual comment doesn't spin up a secret-bearing runner just to no-op.
25+
if: ${{ github.event_name != 'issue_comment' || (github.event.issue.pull_request && contains(github.event.comment.body, '@realio-pr-reviewer')) }}
26+
uses: realiotech/workflows/.github/workflows/pr-review.yaml@main
27+
secrets:
28+
PR_REVIEWER_APP_ID: ${{ secrets.PR_REVIEWER_APP_ID }}
29+
PR_REVIEWER_PRIVATE_KEY: ${{ secrets.PR_REVIEWER_PRIVATE_KEY }}
30+
PARASAIL_API_KEY: ${{ secrets.PARASAIL_API_KEY }}

0 commit comments

Comments
 (0)