File tree 5 files changed +19
-6
lines changed
5 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 11
11
- CHANGELOG.md
12
12
pull_request_target :
13
13
14
+ env :
15
+ IN_MAINTAINER_LIST : ${{ contains(secrets.MAINTAINER_LIST, github.actor) }}
16
+
14
17
jobs :
15
18
changes :
16
- if : github.event_name == 'pull_request_target' && !contains( secrets.MAINTAINER_LIST, github.actor)
17
19
name : Filter Changes
18
20
runs-on : ubuntu-latest
19
21
outputs :
20
22
changed : ${{ steps.filter.outputs.changed }}
21
23
steps :
22
24
- uses : dorny/paths-filter@v2
25
+ if : github.event_name == 'pull_request_target' && env.IN_MAINTAINER_LIST == 'false'
23
26
id : filter
24
27
with :
25
28
filters : |
Original file line number Diff line number Diff line change 7
7
- ' release/**'
8
8
pull_request_target :
9
9
10
+ env :
11
+ IN_MAINTAINER_LIST : ${{ contains(secrets.MAINTAINER_LIST, github.actor) }}
12
+
10
13
jobs :
11
14
changes :
12
- if : github.event_name == 'pull_request_target' && !contains( secrets.MAINTAINER_LIST, github.actor)
13
15
name : Filter Changes
14
16
runs-on : ubuntu-latest
15
17
outputs :
16
18
changed : ${{ steps.filter.outputs.changed }}
17
19
steps :
18
20
- uses : dorny/paths-filter@v2
21
+ if : github.event_name == 'pull_request_target' && env.IN_MAINTAINER_LIST == 'false'
19
22
id : filter
20
23
with :
21
24
filters : |
Original file line number Diff line number Diff line change 4
4
issue_comment :
5
5
types : [created]
6
6
7
+ env :
8
+ IN_MAINTAINER_LIST : ${{ contains(secrets.MAINTAINER_LIST, github.actor) }}
9
+
7
10
jobs :
8
11
issue_comment_triage :
9
- if : github.event_name == 'issue_comment' && !contains( secrets.MAINTAINER_LIST, github.actor)
10
12
runs-on : ubuntu-latest
11
13
steps :
12
14
- uses : actions-ecosystem/action-remove-labels@v1
15
+ if : github.event_name == 'issue_comment' && env.IN_MAINTAINER_LIST == 'false'
13
16
with :
14
17
labels : |
15
18
stale
Original file line number Diff line number Diff line change 7
7
PermissionsCheck :
8
8
env :
9
9
MAINTAINER_CAN_MODIFY : ${{ github.event.pull_request.maintainer_can_modify }}
10
- ALLOW_LISTED : ${{ contains( secrets.MAINTAINER_LIST, github.actor) }}
10
+ IN_MAINTAINER_LIST : ${{ contains( secrets.MAINTAINER_LIST, github.actor) }}
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Comment if maintainers cannot edit
14
- if : ${{ ( env.ALLOW_LISTED == 'false' ) && ( env.MAINTAINER_CAN_MODIFY == 'false' ) }}
14
+ if : ${{ ( env.IN_MAINTAINER_LIST == 'false' ) && ( env.MAINTAINER_CAN_MODIFY == 'false' ) }}
15
15
uses : peter-evans/create-or-update-comment@v1
16
16
with :
17
17
issue-number : ${{ github.event.pull_request.number }}
Original file line number Diff line number Diff line change 2
2
- pull_request_target
3
3
4
4
name : Pull Request Target (All types)
5
+
6
+ env :
7
+ IN_MAINTAINER_LIST : ${{ contains(secrets.MAINTAINER_LIST, github.actor) }}
8
+
5
9
jobs :
6
10
Labeler :
7
11
runs-on : ubuntu-latest
18
22
- uses : actions/checkout@v3
19
23
- name : Apply needs-triage Label
20
24
uses : actions/labeler@v4
21
- if : github.event.action == 'opened' && !contains( secrets.MAINTAINER_LIST, github.actor)
25
+ if : github.event.action == 'opened' && env.IN_MAINTAINER_LIST == 'false'
22
26
with :
23
27
configuration-path : .github/labeler-pr-needs-triage.yml
24
28
repo-token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments