Skip to content

Sync outside collaborators as part of user List #4

Sync outside collaborators as part of user List

Sync outside collaborators as part of user List #4

on:
pull_request_target:
concurrency:
group: pr-review-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
pr-review:
if: github.repository != 'ConductorOne/github-workflows'
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
pull-requests: write
issues: write
steps:
- name: PR Commit Count
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
- name: Checkout PR head
uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
- name: Checkout workflows repo
uses: actions/checkout@v6
with:
repository: ConductorOne/github-workflows
path: _workflows
sparse-checkout: skills
- name: Install review skill
run: |
mkdir -p .claude/skills
cp _workflows/skills/pr-review.md .claude/skills/pr-review.md
rm -rf _workflows
- name: Run Claude PR Review
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
use_sticky_comment: true
track_progress: true
include_fix_links: true
allowed_bots: "*"
claude_args: --model claude-opus-4-6 --max-turns 100 --allowedTools "Read,Glob,Grep,Task,Skill,mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr review:*)"
prompt: |
Use the /pr-review skill to review this PR.