Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
message-circle

GitHub Action

Maintain One Comment

v1.0.0

Maintain One Comment

message-circle

Maintain One Comment

Maintain just one comment in Issue and PR

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Maintain One Comment

uses: actions-cool/[email protected]

Learn more about this action in actions-cool/maintain-one-comment

Choose a version

πŸ“Œ Maintain One Comment

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

Preview

How to use?

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 βœ–

Emoji List

input emoji
+1 πŸ‘
-1 πŸ‘Ž
laugh πŸ˜„
confused πŸ˜•
heart ❀️
hooray πŸŽ‰
rocket πŸš€
eyes πŸ‘€

Changelog

CHANGELOG

πŸ’– Who is using?

LICENSE

MIT