Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Evans committed Dec 7, 2020
1 parent 5221bf4 commit 42d0000
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,14 @@ Some use cases might find the [find-comment](https://github.com/peter-evans/find
This will search an issue or pull request for the first comment containing a specified string, and/or by a specified author.
See the repository for detailed usage.

In the following example, find-comment is used to determine a comment has already been created on a pull request. In this case, the comment will be updated instead of being created.
In the following example, find-comment is used to determine if a comment has already been created on a pull request.
In this case, the comment will be updated instead of being created.
```yml
- name: Find Comment
uses: peter-evans/find-comment@v1
id: fc
with:
issue-number: ${{ github.event.pull_request.number }} #e.g. 1
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: This comment was written by a bot!
Expand All @@ -128,8 +129,7 @@ In the following example, find-comment is used to determine a comment has alread
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
body: |
Update!
Comments can also be updated by us. :)
This comment has been updated!
reaction-type: "rocket"
```

Expand Down

0 comments on commit 42d0000

Please sign in to comment.