diff options
author | sy-b <94835959+sy-b@users.noreply.github.com> | 2022-07-12 15:37:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 15:37:19 +0300 |
commit | 00fd96e9ade585d91fa269246210d90b0bda6626 (patch) | |
tree | 8ac9a63fa9a3186fe843ef9d9858ab59f9116875 | |
parent | 630a271e9ddd126e94d381bba09505e9ff34c82b (diff) |
Improve - assign-commenter
Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
-rw-r--r-- | .github/workflows/commentCommands.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index 89bf1c0..6344344 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -9,7 +9,8 @@ jobs: assign-commentor: runs-on: ubuntu-latest if: | - github.event.comment.body == '/assignme' + contains(github.event.comment.body, '/assignme') || + contains(github.event.comment.body, '/assign me') steps: - name: Assigning to commenter run: | @@ -23,10 +24,10 @@ jobs: add-label-duplicate: runs-on: ubuntu-latest if: | - contains(github.event.comment.body, "/duplicate") && ( + contains(github.event.comment.body, '/duplicate') && ( github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || - github.event.comment.author_association == 'CONTRIBUTOR' ) + github.event.comment.author_association != 'CONTRIBUTOR' ) steps: - name: add-label-duplicate run: | |