@@ -17,13 +17,24 @@ jobs:
17
17
# github.event.pull_request.user.login == 'external-contributor' ||
18
18
# github.event.pull_request.user.login == 'new-developer' ||
19
19
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
20
-
20
+ #
21
+ # 現時点では Org 内の MEMBER と OWNER のみが使用可能
22
+ if : |
23
+ (github.event_name == 'pull_request' &&
24
+ contains(fromJSON('["MEMBER", "OWNER"]'), github.event.pull_request.author_association)) ||
25
+ (github.event_name == 'issue_comment' &&
26
+ github.event.issue.pull_request &&
27
+ contains(github.event.comment.body, '@claude') &&
28
+ contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association))
29
+
21
30
runs-on : ubuntu-latest
31
+
32
+ # 最小限の権限のみ付与
22
33
permissions :
23
- contents : read
24
- pull-requests : read
25
- issues : read
26
- id-token : write
34
+ contents : read # リポジトリ内容の読込/書込
35
+ pull-requests : read # PRのコメントの読込/書込
36
+ issues : read # Issueのコメントの読込/書込
37
+ id-token : write # 実行時に適切な権限を取得 (ココがwriteの時、上記はreadで良い)
27
38
28
39
steps :
29
40
- name : Checkout repository
38
49
claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
39
50
40
51
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
41
- # model: "claude-opus-4-20250514"
52
+ model : " claude-opus-4-20250514"
42
53
43
54
# Direct prompt for automated review (no @claude mention needed)
44
55
direct_prompt : |
50
61
- Test coverage
51
62
52
63
Be constructive and helpful in your feedback.
64
+ Always respond in Japanese, even if given instructions are in English.
65
+ Use Japanese for all outputs, explanations, and comments in code
53
66
54
67
# Optional: Use sticky comments to make Claude reuse the same comment on subsequent pushes to the same PR
55
68
# use_sticky_comment: true
0 commit comments