Skip to content

Commit affc84f

Browse files
committed
Issue management
1 parent 84f1e2d commit affc84f

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed

.github/workflows/close-stale.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# close-stale.yml
3+
# Close open issues after a period of inactivity
4+
#
5+
6+
name: Close Stale Issues
7+
8+
on:
9+
schedule:
10+
- cron: '0 1,13 * * *'
11+
12+
jobs:
13+
stale:
14+
name: Close Stale Issues
15+
if: github.repository == 'benlye/flash-multi'
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/stale@v3
21+
with:
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
stale-issue-message: >
24+
This issue has been automatically marked as stale because it has not had any
25+
recent activity. Please add a reply if you want to keep this issue active,
26+
otherwise it will be automatically closed in 5 days.
27+
days-before-stale: 14
28+
days-before-close: 5
29+
exempt-issue-labels: 'enhancement,work-in-progress'

.github/workflows/lock-closed.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#
2+
# lock-closed.yml
3+
# Lock closed issues after a period of inactivity
4+
#
5+
6+
name: Lock Closed Issues
7+
8+
on:
9+
schedule:
10+
- cron: '0 1,13 * * *'
11+
12+
jobs:
13+
lock:
14+
name: Lock Closed Issues
15+
if: github.repository == 'benlye/flash-multi'
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: dessant/lock-threads@v2
21+
with:
22+
github-token: ${{ github.token }}
23+
process-only: 'issues'
24+
issue-lock-inactive-days: '21'
25+
issue-exclude-created-before: ''
26+
issue-exclude-labels: 'no-locking'
27+
issue-lock-labels: ''
28+
issue-lock-comment: >
29+
This issue has been automatically locked because there was no further activity
30+
after it was closed. Please open a new issue for any related problems.
31+
issue-lock-reason: ''

.github/workflows/unlock-reopened.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# unlock-reopened.yml
3+
# Unlock an issue whenever it is re-opened
4+
#
5+
6+
name: Unlock Reopened Issue
7+
8+
on:
9+
issues:
10+
types: [reopened]
11+
12+
jobs:
13+
unlock:
14+
name: Unlock Reopened Issues
15+
if: github.repository == 'benlye/flash-multi'
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: OSDKDev/[email protected]
21+
with:
22+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)