We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cd6fd6 commit e118576Copy full SHA for e118576
.github/workflows/pr-agent.yml
@@ -5,7 +5,27 @@ on:
5
issue_comment:
6
jobs:
7
pr_agent_job:
8
- if: ${{ github.event.sender.type != 'Bot' }}
+ if: >-
9
+ ${{
10
+ github.event.sender.type != 'Bot' &&
11
+ (
12
13
+ github.event_name == 'pull_request' &&
14
+ contains(
15
+ fromJSON('["OWNER","MEMBER","COLLABORATOR"]'),
16
+ github.event.pull_request.author_association
17
+ )
18
+ ) ||
19
20
+ github.event_name == 'issue_comment' &&
21
+ github.event.issue.pull_request &&
22
23
24
+ github.event.comment.author_association
25
26
27
28
+ }}
29
runs-on: ubuntu-latest
30
permissions:
31
issues: write
0 commit comments