Browse Source

PR agent Owner

darrenhinde 7 months ago
parent
commit
44764c40e4
1 changed files with 4 additions and 2 deletions
  1. 4 2
      .github/workflows/opencode.yml

+ 4 - 2
.github/workflows/opencode.yml

@@ -7,8 +7,10 @@ on:
 jobs:
 jobs:
   opencode:
   opencode:
     if: |
     if: |
-      contains(github.event.comment.body, '/oc') ||
-      contains(github.event.comment.body, '/opencode')
+      (contains(github.event.comment.body, '/oc') ||
+       contains(github.event.comment.body, '/opencode')) &&
+      (github.event.comment.author_association == 'OWNER' ||
+       github.event.comment.author_association == 'MEMBER')
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     permissions:
     permissions:
       id-token: write
       id-token: write