Explorar o código

Trigger if mentioned anywhere in the sentence

Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
sy-b %!s(int64=3) %!d(string=hai) anos
pai
achega
7a9d4b6e82
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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: |