A GitHub Action to comment on the relevant open PR when a commit is pushed.
Go to file
2020-06-29 16:49:48 +02:00
action.yml Update action.yml 2020-06-29 16:09:17 +02:00
Dockerfile Revert "Update Dockerfile" 2020-06-29 16:05:31 +02:00
entrypoint.sh Update entrypoint.sh 2020-06-29 16:49:48 +02:00
LICENSE Add license and readme. 2019-05-24 10:48:10 -05:00
README.md Make checking for duplicate msg optional 2020-03-30 17:24:33 +05:30

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