Skip to content

Commit

Permalink
test invisible comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kodster28 committed Dec 12, 2023
1 parent 9c70d2a commit df1a5c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/automated-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Check for existing comment
- name: Check for existing comment (if not create a new one)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -29,7 +29,7 @@ jobs:
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" | \
jq '.[] | select(.user.id == 41898282) | select(.body | contains("TEST")) | .id')
comment_body=$(jq -n --arg body "TEST" '{body: $body}')
comment_body=$(jq -n --arg body "TEST\n<!-- MODIFIED_CONTENT_LINKING_COMMENT -->" '{body: $body}')
# If a comment exists, update it. Otherwise, post a new comment.
if [ ! -z "$existing_comment_id" ]; then
curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
Expand Down

0 comments on commit df1a5c9

Please sign in to comment.