mirror of
https://github.com/unsplash/comment-on-pr.git
synced 2024-09-20 15:46:00 +08:00
24 lines
487 B
Markdown
24 lines
487 B
Markdown
|
# 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 `args`.
|
||
|
|
||
|
### Sample workflow
|
||
|
|
||
|
```
|
||
|
workflow "comment-on-pr example" {
|
||
|
on = "push"
|
||
|
resolves = ["unsplash/comment-on-pr@master"]
|
||
|
}
|
||
|
|
||
|
action "unsplash/comment-on-pr@master" {
|
||
|
uses = "unsplash/comment-on-pr@master"
|
||
|
args = ["Check out this message!"]
|
||
|
secrets = ["GITHUB_TOKEN"]
|
||
|
}
|
||
|
```
|