File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ name: Issue Triage with Gemini
33on :
44 issues :
55 types : [opened, edited]
6- pull_request :
76 workflow_dispatch :
87 inputs :
98 title :
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 }}"
You can’t perform that action at this time.
0 commit comments