Skip to content

Commit af9be26

Browse files
authored
feat: create stale.yml (#8)
* feat: create `stale.yml` * Update stale.yml
1 parent b0997ba commit af9be26

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/stale.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: stale
2+
3+
on:
4+
schedule:
5+
- cron: "31 22 * * *" # Runs every day at 10:31 PM UTC
6+
7+
workflow_call:
8+
secrets:
9+
GITHUB_TOKEN:
10+
required: true
11+
description: GitHub token to use for the workflow
12+
13+
jobs:
14+
stale:
15+
runs-on: ubuntu-latest
16+
17+
permissions:
18+
issues: write
19+
pull-requests: write
20+
21+
steps:
22+
- name: Mark stale issues and pull requests
23+
uses: actions/stale@v9
24+
with:
25+
repo-token: ${{ secrets.GITHUB_TOKEN }}
26+
days-before-issue-stale: 30
27+
days-before-pr-stale: 10
28+
days-before-close: 7
29+
stale-issue-message: "Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update."
30+
close-issue-message: "This issue was auto-closed due to inactivity. While we wish we could keep responding to every issue, we unfortunately don't have the bandwidth and need to focus on high-value issues."
31+
stale-pr-message: "Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update."
32+
close-pr-message: "This pull request was auto-closed due to inactivity. While we wish we could keep working on every request, we unfortunately don't have the bandwidth to continue here and need to focus on other things. You can resubmit this pull request if you would like to continue working on it."
33+
exempt-all-assignees: true
34+
exempt-issue-labels: accepted
35+
exempt-pr-labels: accepted

0 commit comments

Comments
 (0)