Răsfoiți Sursa

Improve - assign-commenter

Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
sy-b 3 ani în urmă
părinte
comite
00fd96e9ad
1 a modificat fișierele cu 4 adăugiri și 3 ștergeri
  1. 4 3
      .github/workflows/commentCommands.yml

+ 4 - 3
.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: |