Skip to content

Commit 331e7c5

Browse files
committed
Add github action to handle statle issues/PRs
1 parent 060f203 commit 331e7c5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/stale.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
stale:
12+
13+
permissions:
14+
issues: write # for actions/stale to close stale issues
15+
pull-requests: write # for actions/stale to close stale PRs
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/stale@v9
20+
with:
21+
repo-token: ${{ secrets.GITHUB_TOKEN }}
22+
stale-issue-message: 'This issue is stale because it has been open for 120 days with no activity. Remove the `stale` label or comment or this will be closed in 15 days'
23+
stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Remove the `stale` label or comment on this issue, or it will be closed in 15 days'
24+
stale-issue-label: 'stale'
25+
stale-pr-label: 'stale'
26+
days-before-stale: 120
27+
days-before-close: 15
28+
exempt-issue-labels: 'pinned'
29+
exempt-pr-labels: 'pinned'

0 commit comments

Comments
 (0)