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 44 types : [created]
55 pull_request_review_comment :
66 types : [created]
7+ pull_request :
8+ types :
9+ - labeled # 新增此触发条件,监听 PR 被打标签事件
710
811permissions :
912 contents : read
1417 gemini-code-review :
1518 runs-on : ubuntu-latest
1619 if : >
20+ # 现有条件:issue_comment 或 pull_request_review_comment 中包含 /gemini-review 命令
1721 (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+
1926 steps :
2027 - uses : actions/checkout@v3
2128 with :
You can’t perform that action at this time.
0 commit comments