File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,19 @@ permissions:
12
12
jobs :
13
13
remove-labels :
14
14
runs-on : ubuntu-latest
15
+ # This job contains steps which are expected to fail.
16
+ continue-on-error : true
15
17
steps :
18
+ - name : Is comment from a collaborator?
19
+
20
+ with :
21
+ route : GET /repos/${{ github.repository }}/collaborators/${{ github.event.sender.login }}
22
+ env :
23
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
+ # Only remove labels if they are NOT a collaborator.
25
+ # Reason being, a collaborator may post a comment and add a waiting-response label.
16
26
- uses : actions-ecosystem/action-remove-labels@v1
27
+ if : ${{ failure() }}
17
28
with :
18
29
labels : |
19
30
stale
Original file line number Diff line number Diff line change @@ -12,9 +12,21 @@ permissions:
12
12
jobs :
13
13
add-labels :
14
14
runs-on : ubuntu-latest
15
+ # This job contains steps which are expected to fail.
16
+ continue-on-error : true
15
17
steps :
18
+ - name : Is opened by a collaborator?
19
+
20
+ with :
21
+ route : GET /repos/${{ github.repository }}/collaborators/${{ github.event.sender.login }}
22
+ env :
23
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
+ # Only add triage labels if they are NOT a collaborator.
25
+ # This prevents the needs-triage label from being added.
16
26
- uses : actions/checkout@v2
27
+ if : ${{ failure() }}
17
28
29
+ if : ${{ failure() }}
18
30
with :
19
31
repo-token : " ${{ secrets.GITHUB_TOKEN }}"
20
32
configuration-path : .github/labeler-issue-triage.yml
You can’t perform that action at this time.
0 commit comments