-
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (34 loc) · 1.08 KB
/
stale.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Stale
on:
schedule:
- cron: "23 4 * * *"
workflow_dispatch:
jobs:
stale:
name: Close stale issues & discussions
if: github.repository_owner == 'thomasddn'
runs-on: ubuntu-latest
permissions:
issues: write
discussions: write
steps:
- name: Stale issues
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 7
days-before-close: 2
days-before-pr-stale: -1
days-before-pr-close: -1
stale-issue-label: stale
stale-issue-message: >
This issue has been marked as stale due to inactivity. If no response
is provided within 2 days, it will be automatically closed. Feel free
to comment below if you'd like to keep it open.
- name: Stale discussions
uses: steffen-karlsson/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-close: 14
close-unanswered: true
message: This discussion has been closed due to inactivity.