Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit b58fa7b

Browse files
authored
Document how to restrict the action (#51)
Fixes #49
1 parent 54b37dc commit b58fa7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ jobs:
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
```
33+
34+
## Restricting who can call the action
35+
36+
It's possible to use `author_association` field of a comment to restrict who can call the action and skip the rebase for others. Simply add the following expression to the `if` statement in your workflow file: `github.event.comment.author_association == 'MEMBER'`. See [documentation](https://developer.github.com/v4/enum/commentauthorassociation/) for a list of all available values of `author_association`.

0 commit comments

Comments
 (0)