mirror of
https://github.com/unsplash/comment-on-pr.git
synced 2026-01-26 05:23:20 +08:00
A GitHub Action to comment on the relevant open PR when a commit is pushed.
|
|
||
|---|---|---|
| action.yml | ||
| Dockerfile | ||
| entrypoint.sh | ||
| LICENSE | ||
| README.md | ||
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_TOKENsecret. - Requires the comment's message in the
msgparameter. - Supports
push,pull_requestandpull_request_reviewevent 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