chore: configure actions/stale (#157)

* chore: configure actions/stale
* fix: guide the label `pinned`
This commit is contained in:
Shunsuke Suzuki 2021-03-29 17:14:33 +09:00 committed by GitHub
parent 7e2ea39478
commit 0de7b5dc2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

26
.github/workflows/stale.yaml vendored Normal file
View file

@ -0,0 +1,26 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 10 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 60
days-before-close: 7
stale-issue-label: stale
stale-pr-label: stale
exempt-pr-labels: security,pinned
exempt-issue-labels: security,pinned
stale-issue-message: |
This issue is stale because it has been open 60 days with no activity.
Remove `stale` label or comment or this will be closed in 7 days.
If you don't want this issue to be closed, please set the label `pinned`.
stale-pr-message: |
This pull request is stale because it has been open 60 days with no activity.
Remove `stale` label or comment or this will be closed in 7 days.
If you don't want this pull request to be closed, please set the label `pinned`.