1111 types :
1212 - ' opened'
1313 - ' ready_for_review'
14- issues :
15- types :
16- - ' opened'
17- - ' reopened'
14+
1815 issue_comment :
1916 types :
2017 - ' created'
5249 github.event_name == 'pull_request' &&
5350 github.event.pull_request.head.repo.fork == false &&
5451 github.event.pull_request.draft == false
55- ) || (
56- github.event_name == 'issues' &&
57- contains(fromJSON('["opened", "reopened"]'), github.event.action)
5852 ) || (
5953 github.event.sender.type == 'User' &&
6054 startsWith(github.event.comment.body || github.event.review.body || github.event.issue.body, '@gemini-cli') &&
@@ -97,16 +91,10 @@ jobs:
9791
9892 if (eventType === 'pull_request.opened') {
9993 core.setOutput('command', 'review');
100- } else if (['issues.opened', 'issues.reopened'].includes(eventType)) {
101- core.setOutput('command', 'triage');
10294 } else if (request.startsWith("@gemini-cli /review")) {
10395 core.setOutput('command', 'review');
10496 const additionalContext = request.replace(/^@gemini-cli \/review/, '').trim();
10597 core.setOutput('additional_context', additionalContext);
106- } else if (request.startsWith("@gemini-cli /triage")) {
107- core.setOutput('command', 'triage');
108- } else if (request.startsWith("@gemini-cli /approve")) {
109- core.setOutput('command', 'approve');
11098 } else if (request.startsWith("@gemini-cli")) {
11199 const additionalContext = request.replace(/^@gemini-cli/, '').trim();
112100 core.setOutput('command', 'invoke');
@@ -141,19 +129,7 @@ jobs:
141129 additional_context : ' ${{ needs.dispatch.outputs.additional_context }}'
142130 secrets : ' inherit'
143131
144- triage :
145- needs : ' dispatch'
146- if : |-
147- ${{ needs.dispatch.outputs.command == 'triage' }}
148- uses : ' ./.github/workflows/gemini-triage.yml'
149- permissions :
150- contents : ' read'
151- id-token : ' write'
152- issues : ' write'
153- pull-requests : ' write'
154- with :
155- additional_context : ' ${{ needs.dispatch.outputs.additional_context }}'
156- secrets : ' inherit'
132+
157133
158134 invoke :
159135 needs : ' dispatch'
@@ -169,27 +145,13 @@ jobs:
169145 additional_context : ' ${{ needs.dispatch.outputs.additional_context }}'
170146 secrets : ' inherit'
171147
172- plan-execute :
173- needs : ' dispatch'
174- if : |-
175- ${{ needs.dispatch.outputs.command == 'approve' }}
176- uses : ' ./.github/workflows/gemini-plan-execute.yml'
177- permissions :
178- contents : ' write'
179- id-token : ' write'
180- issues : ' write'
181- pull-requests : ' write'
182- with :
183- additional_context : ' ${{ needs.dispatch.outputs.additional_context }}'
184- secrets : ' inherit'
148+
185149
186150 fallthrough :
187151 needs :
188152 - ' dispatch'
189153 - ' review'
190- - ' triage'
191154 - ' invoke'
192- - ' plan-execute'
193155 if : |-
194156 ${{ always() && !cancelled() && (failure() || needs.dispatch.outputs.command == 'fallthrough') }}
195157 runs-on : ' ubuntu-latest'
0 commit comments