Skip to content

Commit

Permalink
update example in README
Browse files Browse the repository at this point in the history
demonstrates how to update comments (in a PR only) instead of posting new ones.
  • Loading branch information
2bndy5 committed Nov 11, 2023
1 parent 4c88006 commit 2f42dd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
# The following value will only update a single comment
# in a pull request's thread. Set it to false to disable the comment. # Set it to true to post a new comment (and delete the old comment).
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}

- name: Fail fast?!
if: steps.linter.outputs.checks-failed > 0
Expand Down

0 comments on commit 2f42dd5

Please sign in to comment.