Skip to content
at-sign

GitHub Action

unique-comment

v1.0.1 Latest version

unique-comment

at-sign

unique-comment

create or update a unique comment for the same issue or pull request

Installation

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

              

- name: unique-comment

uses: taoliujun/[email protected]

Learn more about this action in taoliujun/action-unique-comment

Choose a version

taoliujun/action-unique-comment

This unique comment Action creates or updates a unique comment in the same issue.

pull request is also a specific issue.

Action Name

taoliujun/action-unique-comment

taoliujun/action-unique-comment@v1 means use the major version tag "v1", which will be automatically updated with features and bug fixes.

taoliujun/[email protected] means use the fixed version tag "v1.0.0", which will not be automatically updated.

Usage

name: test unique comment
on:
    pull_request:
        types: [opened, synchronize, reopened]
jobs:
  test1:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Create or update a comment
        uses: taoliujun/action-unique-comment@v1
        with:
            uniqueIdentifier: ${{ github.workflow }}
            body: |
                hello world.

Inputs

name type requirement description default
token string optional github token ${{ github.token }}
owner string optional github repository owner ${{ github.event.repository.owner.login }}
repo string optional github repository name ${{ github.event.repository.name }}
issue_number string optional github issue number ${{ github.event.number }}
uniqueIdentifier string optional unique identifier for the comment "unique-comment"
body string optional comment body -