-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.4 KB
/
Copy pathclaude-code-review.yml
File metadata and controls
36 lines (34 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Thin caller for the central Morrison-Lab/gha reusable Claude code-review
# workflow. Requires the CLAUDE_CODE_OAUTH_TOKEN repository secret (passed via
# `secrets: inherit`). The workflow_dispatch path lets claude.yml re-dispatch a
# review after an @claude run pushes commits — keep this file named
# claude-code-review.yml so the dispatch resolves.
name: Claude Code Review
on:
pull_request:
types: [opened, synchronize, ready_for_review, reopened]
workflow_dispatch:
inputs:
pr_number:
description: 'Pull request number to review'
required: true
type: string
jobs:
review:
permissions:
contents: read
pull-requests: write
issues: write
id-token: write
uses: Morrison-Lab/gha/.github/workflows/claude-code-review.yml@v1
secrets: inherit
with:
# Wires the workflow_dispatch input through so claude.yml can re-dispatch
# a review on Claude's commits; empty (and ignored) for pull_request runs.
pr-number: ${{ inputs.pr_number }}
prompt-addendum: |
This is a Quarto book (prose, not an R package). Focus the review on
the changed .qmd chapters: clear scientific-writing prose, correct
Quarto/Markdown syntax, working cross-references and citations, and the
SERG lab manual's .qmd conventions (backticked `pkg::fn()`, Markdown
links rather than raw HTML, US English spelling).