Skip to content

Commit 8520192

Browse files
ndeloofglours
authored andcommitted
setup stale bot
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 24f8e90 commit 8520192

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/stale.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 'Close stale issues'
2+
3+
# Default to 'contents: read', which grants actions to read commits.
4+
#
5+
# If any permission is set, any permission not included in the list is
6+
# implicitly set to "none".
7+
#
8+
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
9+
permissions:
10+
contents: read
11+
12+
on:
13+
schedule:
14+
- cron: '0 0 * * 0,3' # at midnight UTC every Sunday and Wednesday
15+
jobs:
16+
stale:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
issues: write
20+
pull-requests: write
21+
steps:
22+
- uses: actions/stale@v9
23+
with:
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
stale-issue-message: >
26+
This issue has been automatically marked as stale because it has not had
27+
recent activity. It will be closed if no further activity occurs. Thank you
28+
for your contributions.
29+
days-before-issue-stale: 90 # marks stale after 3 months
30+
days-before-issue-close: 30 # closes 1 month after being marked with no action
31+
stale-issue-label: "stale"
32+
exempt-issue-labels: "Proposal 💡"

0 commit comments

Comments
 (0)