Skip to content

Commit b7ae01e

Browse files
authored
Quiet triage issue comment workflow if issue was deleted (#55708)
1 parent 2b2587a commit b7ae01e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/triage-issue-comments.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,22 @@ jobs:
4747

4848
- uses: ./.github/actions/node-npm-setup
4949

50+
- name: Check issue exists
51+
id: exists
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
ISSUE_URL: ${{ github.event.issue.html_url }}
55+
run: |
56+
if gh issue view $ISSUE_URL > /dev/null 2>&1
57+
then
58+
echo "exists=y" >> $GITHUB_OUTPUT
59+
else
60+
echo "exists=n" >> $GITHUB_OUTPUT
61+
fi
62+
5063
- name: Label issues with new comments with 'triage'
5164
uses: ./.github/actions/labeler
52-
if: ${{ steps.is-internal-contributor.outputs.result == 'false' }}
65+
if: ${{ steps.is-internal-contributor.outputs.result == 'false' && steps.exists.outputs.exists == 'y' }}
5366
with:
5467
addLabels: 'triage'
5568
ignoreIfLabeled: true

0 commit comments

Comments
 (0)