A GitHub Action to comment on the relevant open PR when a commit is pushed.
Go to file
Aaron Klaassen d313421e4e
Merge pull request #36 from sadikkuzu/patch-1
Reorder missing token handler
2021-10-01 11:44:34 -05:00
action.yml Merge branch 'master' into master 2021-10-01 11:20:56 -05:00
Dockerfile Fix Ruby2 write permission error 2021-07-20 13:48:07 +08:00
entrypoint.sh Merge pull request #36 from sadikkuzu/patch-1 2021-10-01 11:44:34 -05:00
LICENSE Add license and readme. 2019-05-24 10:48:10 -05:00
README.md Delete messages matching the given regex 2021-01-02 16:04:17 +03:00

Comment on PR via GitHub Action

A GitHub action to comment on the relevant open PR when a commit is pushed.

Usage

  • Requires the GITHUB_TOKEN secret.
  • Requires the comment's message in the msg parameter.
  • Supports push and pull_request event types.

Sample workflow

name: comment-on-pr example
on: pull_request
jobs:
  example:
    name: sample comment
    runs-on: ubuntu-latest
    steps:
      - name: comment PR
        uses: unsplash/comment-on-pr@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          msg: "Check out this message!"
          check_for_duplicate_msg: false  # OPTIONAL
          delete_prev_regex_msg: "[0-9]"  # OPTIONAL