mirror of
https://github.com/unsplash/comment-on-pr.git
synced 2024-11-10 09:02:32 +08:00
A GitHub Action to comment on the relevant open PR when a commit is pushed.
e806d254dc
This leads to a much smaller download and thus faster workflows on GH. |
||
---|---|---|
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_TOKEN
secret. - Requires the comment's message in the
msg
parameter. - Supports
push
andpull_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!"