mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-25 23:18:51 +00:00
Add number_force that overrides pull_request event
This commit is contained in:
parent
14d4f1e429
commit
e5362d0016
3 changed files with 23 additions and 1 deletions
17
README.md
17
README.md
|
|
@ -91,6 +91,19 @@ If for some reason, triggering on pr is not possible, you can use push.
|
|||
This message is from a push.
|
||||
```
|
||||
|
||||
### Override pull request number
|
||||
|
||||
Use `number_force` to comment on a different pull request than the one that triggered the event.
|
||||
|
||||
```yaml
|
||||
- uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
number_force: 123
|
||||
message: |
|
||||
This comment will be posted to PR #123,
|
||||
regardless of which PR triggered this workflow.
|
||||
```
|
||||
|
||||
### Read comment from a file
|
||||
|
||||
```yaml
|
||||
|
|
@ -217,6 +230,10 @@ For more detailed information about permissions, you can read from the link belo
|
|||
|
||||
**Optional** Pull request number for push event. Note that this has a **lower priority** than the number of a pull_request event.
|
||||
|
||||
### `number_force`
|
||||
|
||||
**Optional** Pull request number for any event. Note that this has the **highest priority** and will override the number from a pull_request event.
|
||||
|
||||
### `owner`
|
||||
|
||||
**Optional** Another repository owner, If not set, the current repository owner is used by default. Note that when you trying changing a repo, be aware that `GITHUB_TOKEN` should also have permission for that repository.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue