From 7a9d4b6e82a06fbabc49258c715f75830e310cc9 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Tue, 12 Jul 2022 18:02:19 +0530 Subject: [PATCH] Trigger if mentioned anywhere in the sentence Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/commentCommands.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index b11a3c6..e5ed4d9 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -23,10 +23,10 @@ jobs: request-issue-framing-improvement: runs-on: ubuntu-latest if: | - github.event.comment.body == '/improve' && ( + contains(github.event.comment.body,'/improve') && ( 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: request-issue-framing-improvement run: |