Skip to content

Commit

Permalink
Test bigger update
Browse files Browse the repository at this point in the history
  • Loading branch information
kodster28 committed Dec 12, 2023
1 parent 62fea63 commit 5d0f4d3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/automated-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ jobs:
existing_comment_id=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" | \
jq '.[] | select(.user.id == 41898282) | select(.body | contains("TEST")) | .id')
jq '.[] | select(.user.id == 41898282) | select(.body | contains("Automatically generated comment")) | .id')
comment_body_unformatted="TEST
<!-- MODIFIED_CONTENT_LINKING_COMMENT -->"
comment_body_unformatted="## Automatically generated comment
**This comment is automatically generated and will be overwritten every time changes are committed to this branch.**
---
### Typo and language issues (non-blocking)
<!-- TYPO_PLACEHOLDER_START -->
<!-- TYPO_PLACEHOLDER_END -->"
comment_body=$(jq -n --arg body "$comment_body_unformatted" '{body: $body}')
# If a comment exists, update it. Otherwise, post a new comment.
Expand Down

0 comments on commit 5d0f4d3

Please sign in to comment.