We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3a616e commit 3d20c33Copy full SHA for 3d20c33
1 file changed
.github/actions/docker-image-comment/action.yml
@@ -69,10 +69,13 @@ runs:
69
echo "Found existing comment(s), deleting to avoid duplicates..."
70
while IFS= read -r comment_id; do
71
if [ -n "$comment_id" ]; then
72
- gh api \
73
- --method DELETE \
74
- -H "Accept: application/vnd.github+json" \
75
- "/repos/${GITHUB_REPOSITORY}/issues/comments/${comment_id}" 2>/dev/null || true
+ # Use GraphQL mutation to delete by node ID
+ gh api graphql -f query='
+ mutation($id: ID!) {
+ deleteIssueComment(input: {id: $id}) {
76
+ clientMutationId
77
+ }
78
+ }' -f id="$comment_id" 2>/dev/null || true
79
fi
80
done <<< "$COMMENT_IDS"
81
0 commit comments