Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov committed Feb 13, 2025
1 parent d7c80d0 commit a9b422c
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,19 +209,11 @@ jobs:
'sort_by(.created_at) | reverse | .[0] | select(.body | contains("Dive Summary")) | .id')
echo "Comment ID: $comment_id"
# Create a review comment and mark it as resolved
review_comment_id=$(gh api "repos/${{ github.repository }}/pulls/${pr_number}/comments" \
-f body="Marking as resolved" \
-f commit_id=$(git rev-parse HEAD) \
-f path="path/to/file" \
-f position=1 \
--jq '.id')
if [ -z "$review_comment_id" ]; then
echo "Failed to create review comment"
if [ -z "$comment_id" ]; then
echo "Expected comment not found in PR"
exit 1
fi
# Mark the review comment as resolved
gh api -X PATCH "repos/${{ github.repository }}/pulls/comments/${review_comment_id}" \
-f state="resolved"
# Delete the comment after verification
gh api -X DELETE "repos/${{ github.repository }}/issues/comments/${comment_id}"
echo "Comment deleted"

0 comments on commit a9b422c

Please sign in to comment.