File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1616 - name : Checkout code
1717 uses : actions/checkout@v4
1818
19+ - name : Add Needs Review Label
20+ env :
21+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22+ ISSUE_NUMBER : ${{ github.event.issue.number }}
23+ run : |
24+ gh issue edit $ISSUE_NUMBER --add-label "Needs Review 👓" --repo ${{ github.repository }}
25+
1926 - name : Call GitHub Model API
2027 id : ai-inference
2128 uses : actions/ai-inference@v1
3946 # Parse the JSON response to extract labels
4047 LABELS=$(echo "$AI_RESPONSE" | python3 -c "import sys, json; print(' '.join([f'--add-label \"{label}\"' for label in json.load(sys.stdin)['labels']]))")
4148
42- # Add the recommended labels, always add "Needs Review 👓", and remove the ai-issue-processing label
49+ # Add the recommended labels and remove the ai-issue-processing label
4350 if [ -n "$LABELS" ]; then
44- eval gh issue edit $ISSUE_NUMBER $LABELS --add-label "Needs Review 👓" -- remove-label "ai-issue-processing" --repo ${{ github.repository }}
51+ eval gh issue edit $ISSUE_NUMBER $LABELS --remove-label "ai-issue-processing" --repo ${{ github.repository }}
4552 else
46- gh issue edit $ISSUE_NUMBER --add-label "Needs Review 👓" -- remove-label "ai-issue-processing" --repo ${{ github.repository }}
53+ gh issue edit $ISSUE_NUMBER --remove-label "ai-issue-processing" --repo ${{ github.repository }}
4754 fi
You can’t perform that action at this time.
0 commit comments