Skip to content

Commit 99f6ecb

Browse files
aaronpowellCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 66ab9e6 commit 99f6ecb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/contributor-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ jobs:
201201
202202
if [ "$risk" != "MEDIUM" ] && [ "$risk" != "HIGH" ]; then
203203
if [ -n "$comment_id" ]; then
204-
gh api --method DELETE "repos/${{ github.repository }}/issues/comments/$comment_id"
204+
gh api --method DELETE "repos/${{ github.repository }}/issues/comments/$comment_id" \
205+
|| echo "Comment $comment_id could not be deleted; continuing because the comment may have already been removed or changed."
205206
fi
206207
exit 0
207208
fi

0 commit comments

Comments
 (0)