Skip to content

Commit a027f35

Browse files
authored
Merge pull request #377 from mikeller/add_stale_action
Changed stale request handling to use a GitHub action.
2 parents 4a35e62 + 7ef9dd9 commit a027f35

File tree

2 files changed

+31
-55
lines changed

2 files changed

+31
-55
lines changed

.github/stale.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/stale.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Close stale issues'
2+
3+
on:
4+
schedule:
5+
- cron: "30 4 * * *"
6+
7+
jobs:
8+
stale:
9+
name: 'Check and close stale issues'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@v3
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
operations-per-run: 30
16+
days-before-stale: 30
17+
days-before-close: 7
18+
stale-issue-message: >
19+
This issue has been automatically marked as stale because it
20+
has not had recent activity. It will be closed if no further activity occurs
21+
within a week.
22+
close-issue-message: 'Issue closed automatically as inactive.'
23+
exempt-issue-labels: 'BUG,Feature Request,Pinned,Has Milestone'
24+
stale-issue-label: 'Inactive'
25+
stale-pr-message: >
26+
This pull request has been automatically marked as stale because it
27+
has not had recent activity. It will be closed if no further activity occurs
28+
within a week.
29+
close-pr-message: 'Pull request closed automatically as inactive.'
30+
exempt-pr-labels: 'Pinned,Has Milestone'
31+
stale-pr-label: 'Inactive'

0 commit comments

Comments
 (0)