File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 4
4
types : [created]
5
5
pull_request_review_comment :
6
6
types : [created]
7
+ pull_request :
8
+ types :
9
+ - labeled # 新增此触发条件,监听 PR 被打标签事件
7
10
8
11
permissions :
9
12
contents : read
14
17
gemini-code-review :
15
18
runs-on : ubuntu-latest
16
19
if : >
20
+ # 现有条件:issue_comment 或 pull_request_review_comment 中包含 /gemini-review 命令
17
21
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/gemini-review')) ||
18
- (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/gemini-review'))
22
+ (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/gemini-review')) ||
23
+ # 新增条件:pull_request labeled 且新增的标签名是 gemini
24
+ (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'gemini')
25
+
19
26
steps :
20
27
- uses : actions/checkout@v3
21
28
with :
You can’t perform that action at this time.
0 commit comments