Skip to content

Commit 9b208b5

Browse files
Merge pull request #615 from sqlkata/autoclose_issue_if_no_reply
Close issues after 30days if no reply
2 parents b394802 + 6fe52ac commit 9b208b5

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Remove needs-reply label
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
if: |
12+
github.event.comment.author_association != 'OWNER' &&
13+
github.event.comment.author_association != 'COLLABORATOR'
14+
steps:
15+
- name: Remove needs-reply label
16+
uses: octokit/[email protected]
17+
continue-on-error: true
18+
with:
19+
route: DELETE /repos/:repository/issues/:issue/labels/:label
20+
repository: ${{ github.repository }}
21+
issue: ${{ github.event.issue.number }}
22+
label: needs-reply
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/needs-reply.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Close old issues that need reply
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Close old issues that need reply
12+
uses: dwieeb/needs-reply@v2
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
issue-label: needs-reply

0 commit comments

Comments
 (0)