-
Notifications
You must be signed in to change notification settings - Fork 404
52 lines (49 loc) · 2.16 KB
/
Copy pathclaude.yml
File metadata and controls
52 lines (49 loc) · 2.16 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Claude Review
# Calls the shared review workflow in iXsystems/ux-github-workflows, which is
# where the schema, the severity rubric and the gate script live. Only the
# trigger below and the secret name are this repo's.
#
# It posts inline comments plus one edited-in-place summary, and fails the job
# at MEDIUM and above. Whether that stops a merge is branch protection, which
# is set here rather than there.
#
# `.claude/review-prompt.md` in this repo is what it reads, and the shared
# severity rubric is appended after it — so that file says what to look for in
# *this* code and nothing about grading.
#
# Reports as `review / <job names in ux-github-workflows>` — two checks, since
# the shared workflow runs the write-access gate as a job of its own. The job id
# below stays `review`, but it stops being a normal job, so adopting this
# renames the checks now: the single `review` is gone, as is `check-ux-team /
# Check UX Team Membership`. Any rule or merge-queue config requiring either has
# to be updated as this merges, not eventually.
#
# Branch protection matches those whole strings, so the shared workflow's job
# names are API from here on: renaming one there silently stops the check
# reporting. Either way a required check that never reports does not fail, it
# stays pending — the PR is unmergeable with nothing red on it to explain why.
# Same caveat, same wording, as `check-ticket.yml` in this repo.
#
# The trigger stays here rather than moving upstream: a `workflow_call` has no
# say in what triggers its caller, and both the `NAS-*` base branches and the
# i18n ignore are specific to this repo.
on:
pull_request:
types: [opened, synchronize]
branches:
- master
- 'NAS-*'
paths-ignore:
- 'src/assets/i18n/**'
jobs:
review:
uses: iXsystems/ux-github-workflows/.github/workflows/claude-review.yml@master
permissions:
contents: read
issues: write
pull-requests: write
id-token: write
secrets:
# Named rather than inherited, because the repos call it different things
# — truenas-connect/ui calls the same secret CLAUDE_TOKEN.
anthropic-api-key: ${{ secrets.CLAUDE_API_KEY }}