Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 5 additions & 26 deletions .github/workflows/gemini-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
pull_request:
types:
- 'opened'
issues:
types:
- 'opened'
- 'reopened'
issue_comment:
types:
- 'created'
Expand Down Expand Up @@ -45,7 +41,8 @@ jobs:
dispatch:
# For PRs: only if not from a fork
# For comments: only if user types @gemini-cli and is OWNER/MEMBER/COLLABORATOR
# For issues: only on open/reopen
# Issue triage was removed (audit N-158): it fed text from any issue
# author to an agent holding repository tokens.
if: |-
(
github.event_name == 'pull_request' &&
Expand All @@ -54,9 +51,6 @@ jobs:
github.event.sender.type == 'User' &&
startsWith(github.event.comment.body || github.event.review.body || github.event.issue.body, '@gemini-cli') &&
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association || github.event.review.author_association || github.event.issue.author_association)
) || (
github.event_name == 'issues' &&
contains(fromJSON('["opened", "reopened"]'), github.event.action)
)
runs-on: 'ubuntu-latest'
permissions:
Expand Down Expand Up @@ -98,15 +92,15 @@ jobs:
const additionalContext = request.replace(/^@gemini-cli \/review/, '').trim();
core.setOutput('additional_context', additionalContext);
} else if (request.startsWith("@gemini-cli /triage")) {
core.setOutput('command', 'triage');
// Triage was removed (N-158); answer with the fallthrough
// comment instead of running it as a general invoke.
core.setOutput('command', 'fallthrough');
} else if (request.startsWith("@gemini-cli")) {
core.setOutput('command', 'invoke');
const additionalContext = request.replace(/^@gemini-cli/, '').trim();
core.setOutput('additional_context', additionalContext);
} else if (eventType === 'pull_request.opened') {
core.setOutput('command', 'review');
} else if (['issues.opened', 'issues.reopened'].includes(eventType)) {
core.setOutput('command', 'triage');
} else {
core.setOutput('command', 'fallthrough');
}
Expand Down Expand Up @@ -137,20 +131,6 @@ jobs:
additional_context: '${{ needs.dispatch.outputs.additional_context }}'
secrets: 'inherit'

triage:
needs: 'dispatch'
if: |-
${{ needs.dispatch.outputs.command == 'triage' }}
uses: './.github/workflows/gemini-triage.yml'
permissions:
contents: 'read'
id-token: 'write'
issues: 'write'
pull-requests: 'write'
with:
additional_context: '${{ needs.dispatch.outputs.additional_context }}'
secrets: 'inherit'

invoke:
needs: 'dispatch'
if: |-
Expand All @@ -169,7 +149,6 @@ jobs:
needs:
- 'dispatch'
- 'review'
- 'triage'
- 'invoke'
if: |-
${{ always() && !cancelled() && (failure() || needs.dispatch.outputs.command == 'fallthrough') }}
Expand Down
130 changes: 0 additions & 130 deletions .github/workflows/gemini-issue-automated-triage.yml

This file was deleted.

123 changes: 0 additions & 123 deletions .github/workflows/gemini-issue-scheduled-triage.yml

This file was deleted.

Loading
Loading