-
-
Notifications
You must be signed in to change notification settings - Fork 764
34 lines (31 loc) · 939 Bytes
/
need_reply_remove.yml
File metadata and controls
34 lines (31 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Remove needs-reply label
on:
schedule:
- cron: '0 3 * * 1'
issue_comment:
types:
- created
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
contents: read
if: |
github.event.comment.author_association != 'OWNER' &&
github.event.comment.author_association != 'COLLABORATOR' &&
github.repository == 'pybamm-team/PyBaMM' &&
github.event_name != 'pull_request'
steps:
- name: Remove needs-reply label
uses: octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0
continue-on-error: true
with:
route: DELETE /repos/:repository/issues/:issue/labels/:label
repository: ${{ github.repository }}
issue: ${{ github.event.issue.number }}
label: needs-reply
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}