Skip to content

Commit 4ac6272

Browse files
committed
Merge branch 'main' of https://github.com/uwblueprint/food4kids into david/refactoring-front-end-by-hand
2 parents 48af394 + 7ef0fe3 commit 4ac6272

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## JIRA ticket link
22
<!-- Please replace with your ticket's URL -->
3-
[Ticket Name](https://f4kblueprint.atlassian.net/browse/F4KRP-21)
3+
[Ticket Name](https://f4kblueprint.atlassian.net/browse/F4KRP)
44

55

66
<!-- Give a quick summary of the implementation details, provide design justifications if necessary -->

.github/workflows/claude-code-review.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: Claude Code Review
22

33
on:
44
pull_request:
5-
types: [opened, synchronize]
6-
# Optional: Only run on specific file changes
7-
# paths:
8-
# - "src/**/*.ts"
9-
# - "src/**/*.tsx"
10-
# - "src/**/*.js"
11-
# - "src/**/*.jsx"
5+
types: [ready_for_review, opened]
6+
issue_comment:
7+
types: [created]
128

139
jobs:
1410
claude-review:
11+
if: |
12+
(github.event_name == 'pull_request' && !github.event.pull_request.draft) ||
13+
(github.event_name == 'issue_comment' && github.event.issue.pull_request &&
14+
contains(github.event.comment.body, '@claude review'))
1515
runs-on: ubuntu-latest
1616
permissions:
1717
contents: read
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 1
27+
ref: ${{ github.event_name == 'issue_comment' && format('refs/pull/{0}/head', github.event.issue.number) || github.event.pull_request.head.ref }}
2728

2829
- name: Run Claude Code Review
2930
id: claude-review
@@ -32,7 +33,7 @@ jobs:
3233
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3334
prompt: |
3435
REPO: ${{ github.repository }}
35-
PR NUMBER: ${{ github.event.pull_request.number }}
36+
PR NUMBER: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event.issue.number }}
3637
3738
Please review this pull request and provide feedback on:
3839
- Code quality and best practices
@@ -48,4 +49,3 @@ jobs:
4849
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4950
# or https://code.claude.com/docs/en/cli-reference for available options
5051
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
51-

0 commit comments

Comments
 (0)