Skip to content

Commit 3cc5767

Browse files
committed
Add workflow files for automatic stale issues
1 parent 133cdd4 commit 3cc5767

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/lock.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Lock closed stale issue
2+
3+
on:
4+
issues:
5+
types: [closed]
6+
7+
jobs:
8+
lock:
9+
if: github.event.label.name == 'closed-no-issue-activity'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: OSDKDev/[email protected]
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/stale.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Close stale issues
2+
3+
on:
4+
schedule:
5+
- cron: "30 3 * * *"
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/stale@v9
12+
with:
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs."
15+
close-issue-message: "This issue has been closed due to lack of activity, if this issue still persists, please re-open it."
16+
close-issue-label: "closed-no-issue-activity"
17+
stale-issue-label: "no-issue-activity"
18+
days-before-stale: 15
19+
days-before-close: 90
20+
exempt-issue-labels: "bypass-activity"
21+
exempt-pr-labels: "bypass-activity"

0 commit comments

Comments
 (0)