Skip to content

Commit e175f87

Browse files
committed
housekeeping: add issue management workflow
1 parent 39a64e1 commit e175f87

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

Diff for: .github/workflows/manage_issues.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Issue Manager
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
issue_comment:
7+
types:
8+
- created
9+
issues:
10+
types:
11+
- labeled
12+
pull_request_target:
13+
types:
14+
- labeled
15+
workflow_dispatch:
16+
17+
permissions:
18+
issues: write
19+
pull-requests: write
20+
21+
concurrency:
22+
group: lock
23+
24+
jobs:
25+
lock-old-closed-issues:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: dessant/lock-threads@v4
29+
with:
30+
issue-inactive-days: '180'
31+
process-only: 'issues'
32+
issue-comment: >
33+
This issue has been automatically locked since there
34+
has not been any recent activity after it was closed.
35+
Please open a new issue for related topics referencing
36+
this issue.
37+
close-labelled-issues:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: tiangolo/[email protected]
41+
with:
42+
token: ${{ secrets.GITHUB_TOKEN }}
43+
config: >
44+
{
45+
"needs-reply": {
46+
"delay": 2200000,
47+
"message": "This issue was closed due to inactivity. If your request is still relevant, please open a new issue referencing this one and provide all of the requested information."
48+
}
49+
}

0 commit comments

Comments
 (0)