Pārlūkot izejas kodu

Trigger if mentioned anywhere in the sentence

Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
sy-b 3 gadi atpakaļ
vecāks
revīzija
7a9d4b6e82
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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: |