Skip to content

Commit b693bca

Browse files
committed
Fixing problem
1 parent 10539b5 commit b693bca

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/ai-issue-processing.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
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
@@ -39,9 +46,9 @@ jobs:
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

0 commit comments

Comments
 (0)