Browse Source

Trigger if mentioned anywhere in the sentence

Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
sy-b 3 năm trước cách đây
mục cha
commit
7a9d4b6e82
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      .github/workflows/commentCommands.yml

+ 2 - 2
.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: |