1010 pull_request :
1111 types :
1212 - ' opened'
13+ issues :
14+ types :
15+ - ' opened'
16+ - ' reopened'
1317 issue_comment :
1418 types :
1519 - ' created'
@@ -24,11 +28,13 @@ jobs:
2428 (
2529 github.event_name == 'pull_request' &&
2630 contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association)
27- ) ||
28- (
31+ ) || (
2932 github.event.sender.type == 'User' &&
3033 startsWith(github.event.comment.body || github.event.review.body || github.event.issue.body, '@gemini-cli') &&
3134 contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association || github.event.review.author_association || github.event.issue.author_association)
35+ ) || (
36+ github.event_name == 'issues' &&
37+ contains(fromJSON('["opened", "reopened"]'), github.event.action)
3238 )
3339 runs-on : ' ubuntu-latest'
3440 permissions :
6571 const eventType = process.env.EVENT_TYPE
6672 core.setOutput('request', request);
6773
68- if (false) {
69- // Just for aligning the conditions
70- } else if (request.startsWith("@gemini-cli /review")) {
74+ if (request.startsWith("@gemini-cli /review")) {
7175 core.setOutput('command', 'review');
7276 const additionalContext = request.replace(/^@gemini-cli \/review/, '').trim();
7377 core.setOutput('additional_context', additionalContext);
7983 core.setOutput('additional_context', additionalContext);
8084 } else if (eventType === 'pull_request.opened') {
8185 core.setOutput('command', 'review');
86+ } else if (['issues.opened', 'issues.reopened'].includes(eventType)) {
87+ core.setOutput('command', 'triage');
8288 } else {
8389 core.setOutput('command', 'fallthrough');
8490 }
0 commit comments