Skip to content

shoppingjaws/actions-rewritable-comment

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TL;DR

この Actions は Issue / PR コメントに対して、編集可能なコメントを作成することができます。 もうこれ以上、毎回過去のコメントを outdate する必要はありません。

This Actions allows you to create editable comments on Issue / PR comments. No more outdating past comments every time. スクリーンショット 2023-06-01 14 59 46 2

Getting Started

Works with on.pull_request (minimal option)

- name: rewritable-issue-comment
  uses: nakamuloud/[email protected]
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    VALUE: 'Hello World'

Will posts / edits below comment to the PR

Hello World
<!-- actions-rewritable-comment:default -->

Works with other triggers

- name: rewritable-issue-comment
  uses: nakamuloud/[email protected]
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    VALUE: 'Hello World'
    ISSUE_NUMBER: 1

Will posts / edits below comment to the Issue / PR (id=1)

Hello World
<!-- actions-rewritable-comment:default -->

Works with other triggers to another Repository

- name: rewritable-issue-comment
  uses: nakamuloud/[email protected]
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    VALUE: 'Hello World'
    ISSUE_NUMBER: 1
    OWNER: example
    REPOSITORY: dotfiles

Will posts / edits below comment to the Issue / PR (id=1) at example/dotfiles repository

Hello World
<!-- actions-rewritable-comment:default -->

Works with full options

- name: rewritable-issue-comment
  uses: nakamuloud/[email protected]
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    VALUE: 'Hello World'
    ISSUE_NUMBER: 1
    OWNER: example
    REPOSITORY: dotfiles
    KEY: key
    COMMENT_ID: comment_id

Will posts / edits below comment to the Issue / PR (id=1) at example/dotfiles repository with the annotation of key:comment_id

Hello World
<!-- key:comment -->

Lisence

This project is licensed under the MIT License, see the LICENSE.txt file for details