Skip to content

Commit 5fb50cd

Browse files
authored
github: introduce actions/stale for handling issues/PRs (#391)
Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent f765aa3 commit 5fb50cd

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/stale-actions.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Mark or close stale issues and PRs"
2+
on:
3+
schedule:
4+
- cron: "00 11 * * *"
5+
6+
permissions: read-all
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
days-before-stale: 30
19+
days-before-close: 7
20+
stale-issue-message: "This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days"
21+
stale-pr-message: "This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 7 days"
22+
close-issue-message: "This issue was automatically closed because of stale in 7 days"
23+
close-pr-message: "This PR was automatically closed because of stale in 7 days"
24+
stale-pr-label: "stale"
25+
stale-issue-label: "stale"
26+
exempt-issue-labels: "bug,enhancement,help wanted,moreinfo,pending,question,wontfix"
27+
exempt-pr-labels: "bug,enhancement,help wanted,moreinfo,pending,question,wontfix"
28+
exempt-all-assignees: true
29+
exempt-all-milestones: true

0 commit comments

Comments
 (0)