You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Maintain One Comment
v1.0.0
Maintain just one comment in Issue and PR.
- This Action is only applicable to triggers related to issue and pull_request
- When the filtered comments do not exist, will add a comment
- When the filtered comments is only one, this comment will be updated
- When the number of filtered comments exceeds 1, no operation will be performed
name: Maintain One Comment
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]
pull_request:
types: [assigned, opened, synchronize, edited]
jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: maintain-comment
uses: actions-cool/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Hi π
<!-- Created by actions-cool/maintain-one-comment -->
emojis: '+1, laugh'
body-include: '<!-- Created by actions-cool/maintain-one-comment -->'
Name | Desc | Type | Required |
---|---|---|---|
token | GitHub token | string | β |
body | Create comment body | string | β |
emojis | Add emoji | string | β |
update-mode | Comment update mode. Options: replace append . Default: replace |
string | β |
comment-auth | Filter comment auth | string | β |
body-include | Filter comment body | string | β |
input | emoji |
---|---|
+1 |
π |
-1 |
π |
laugh |
π |
confused |
π |
heart |
β€οΈ |
hooray |
π |
rocket |
π |
eyes |
π |