Skip to content

Commit ff8c73b

Browse files
authored
github: introduce actions/stale (#635)
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
1 parent 68390ce commit ff8c73b

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

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 10 * * *"
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@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.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: "waiting-for-triage,bug,enhancement,good first issue,help wanted,pending,question,work-in-progress"
27+
exempt-pr-labels: "waiting-for-triage,bug,enhancement,pending"
28+
exempt-all-assignees: true
29+
exempt-all-milestones: true

0 commit comments

Comments
 (0)