A GitHub Action to comment on the relevant open PR when a commit is pushed.
Go to file
Baldo Alessandro 2f2087d594
Fix sample workflow with actual versione tag
The sample provided in the README reported a version number that didn't match any tag in the repo and resulted in:
```bash
Error: Unable to resolve action `unsplash/comment-on-pr@1.3.0`, unable to find version `1.3.0`
```
2021-10-16 00:21:43 +02:00
action.yml Update input descriptions 2021-10-01 17:15:59 -07:00
Dockerfile Fix Ruby2 write permission error 2021-07-20 13:48:07 +08:00
entrypoint.sh Skip retrieving comments if unused 2021-10-01 17:21:35 -07:00
LICENSE Add license and readme. 2019-05-24 10:48:10 -05:00
README.md Fix sample workflow with actual versione tag 2021-10-16 00:21:43 +02: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@v1.3.0
        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
          duplicate_msg_pattern: "[A-Z]"  # OPTIONAL