From b58fa7bac6d1d885234db03877f1d599c3ff48c7 Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Thu, 2 Jul 2020 19:09:40 -0400 Subject: [PATCH] Document how to restrict the action (#51) Fixes #49 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d559635..c88b62d 100644 --- a/README.md +++ b/README.md @@ -30,3 +30,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` + +## Restricting who can call the action + +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`.