Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/pr-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Calls the org reusable PR reviewer (realiotech/pr-reviewer via realiotech/workflows).
# Auto-reviews PRs; reply "@realio-pr-reviewer <explain|fix|dismiss|re-review> ..."
# in a PR comment to drive follow-ups. Advisory only — does not gate merges.
name: pr-review

on:
pull_request:
types: [opened, synchronize, reopened]
issue_comment:
types: [created]

# Least-privilege: the reviewer writes via its GitHub App token, not GITHUB_TOKEN.
permissions:
contents: read

# Coalesce rapid pushes / repeated comments; cancel superseded runs (per PR + event).
concurrency:
group: pr-review-${{ github.event.pull_request.number || github.event.issue.number }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
review:
# PRs always; PR comments only when they actually mention the bot — so a
# casual comment doesn't spin up a secret-bearing runner just to no-op.
if: ${{ github.event_name != 'issue_comment' || (github.event.issue.pull_request && contains(github.event.comment.body, '@realio-pr-reviewer')) }}
uses: realiotech/workflows/.github/workflows/pr-review.yaml@main
secrets:
PR_REVIEWER_APP_ID: ${{ secrets.PR_REVIEWER_APP_ID }}
PR_REVIEWER_PRIVATE_KEY: ${{ secrets.PR_REVIEWER_PRIVATE_KEY }}
PARASAIL_API_KEY: ${{ secrets.PARASAIL_API_KEY }}
Loading