You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5fe5adf
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/workflows/claude-review.yml
+72-6Lines changed: 72 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,17 @@
5
5
# the calling repository, so the decide job checks out the request decision, request-decision/decision.jq, and the
6
6
# Python step files in steps/ from this repository at the commit the caller pinned. request-decision/test runs that same
7
7
# jq file against saved cases, and the unit tests in tests/ run the same step files. The fire job checks out the step
8
-
# files the same way and runs the routine call from steps/fire.py.
8
+
# files the same way and runs the routine call from steps/fire.py, and the react job checks them out too and runs the
9
+
# 👀 reaction from steps/react.py.
9
10
#
10
-
# Kinds of review request handled so far: Ready (a non-draft pull request opened or reopened, or a draft marked ready
11
-
# for review). Drafts, bots' pull requests, forks and deleted forks are skipped, and so is a pull request whose author
12
-
# is not a team member. A pull request opened by the review agent is reviewed without a membership lookup.
11
+
# Kinds of review request handled so far:
12
+
# Ready: a non-draft pull request opened or reopened, or a draft marked ready for review. Drafts, bots' pull requests,
13
+
# forks and deleted forks are skipped, and so is a pull request whose author is not a team member. A pull request
14
+
# opened by the review agent is reviewed without a membership lookup.
15
+
# Comment command: a team member's new pull request comment whose first line is `@<review agent> review`, on drafts
16
+
# and forks too. The rest of the comment is passed on as instructions, and the comment gets a 👀 reaction once the
17
+
# request is sent. Comments by bots and by the review agent are skipped without a lookup, and so are commands on
18
+
# closed or merged pull requests.
13
19
name: Claude review
14
20
15
21
on:
@@ -24,7 +30,7 @@ on:
24
30
type: string
25
31
default: developers
26
32
review-agent:
27
-
description: The login of the review agent, the account whose pull requests are reviewed without a membership lookup.
33
+
description: The login of the review agent, the account mentioned in a comment command, whose pull requests are reviewed without a membership lookup and whose comments never request a review.
# Without a successful checkout of the file and the helper module beside it, no reaction is added: the step
301
+
# shows a warning and fails, which continue-on-error keeps from turning the check red. The file reports each of
302
+
# its own failures, a broken helper module included, as one warning, so its exit status is the step's.
303
+
run: |
304
+
if [[ "$CHECKOUT_OUTCOME" == success && -f "$STEP_FILE" && -f "${STEP_FILE%/*}/helpers.py" ]]; then
305
+
exec python3 "$STEP_FILE"
306
+
fi
307
+
echo "::warning::Could not get the reaction's step files (checkout failed, or react.py or helpers.py missing); no 👀 reaction was added, but the review was still requested"
Copy file name to clipboardExpand all lines: CONTEXT.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ The review request made when a non-draft pull request is opened or reopened, or
13
13
_Avoid_: auto review
14
14
15
15
**Comment command**:
16
-
The review request made by a member's comment whose first line starts with `@cipherstash-agent review`; the rest of the comment is the request's instructions.
16
+
The review request made by a member's comment whose first line starts, with no leading whitespace, with `@cipherstash-agent review`; the rest of the comment is the request's instructions.
0 commit comments