Skip to content

Commit a7f1f09

Browse files
committed
ci: restrict triage to issues only
1 parent 47e5da6 commit a7f1f09

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/triage-issue.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Issue Triage with Gemini
33
on:
44
issues:
55
types: [opened, edited]
6-
pull_request:
76
workflow_dispatch:
87
inputs:
98
title:
@@ -18,7 +17,6 @@ jobs:
1817
runs-on: ubuntu-latest
1918
permissions:
2019
issues: write
21-
pull-requests: write
2220
contents: read
2321
steps:
2422
- name: Checkout code
@@ -33,17 +31,17 @@ jobs:
3331
id: run_script
3432
env:
3533
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
36-
ISSUE_TITLE: ${{ github.event.issue.title || github.event.pull_request.title || github.event.inputs.title }}
37-
ISSUE_BODY: ${{ github.event.issue.body || github.event.pull_request.body || github.event.inputs.body }}
34+
ISSUE_TITLE: ${{ github.event.issue.title || github.event.inputs.title }}
35+
ISSUE_BODY: ${{ github.event.issue.body || github.event.inputs.body }}
3836
run: |
3937
labels=$(python .github/scripts/triage_issue.py)
4038
echo "labels=$labels" >> $GITHUB_OUTPUT
4139
4240
- name: Apply Labels
43-
if: steps.run_script.outputs.labels != '' && (github.event.issue.number || github.event.pull_request.number)
41+
if: steps.run_script.outputs.labels != '' && (github.event.issue.number)
4442
env:
4543
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
ISSUE_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
44+
ISSUE_NUMBER: ${{ github.event.issue.number }}
4745
run: |
4846
# Convert comma-separated labels to gh command arguments
4947
IFS=',' read -ra ADDR <<< "${{ steps.run_script.outputs.labels }}"

0 commit comments

Comments
 (0)