Close stale issues #1127
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Close stale issues" | |
on: | |
schedule: | |
- cron: "0 1 * * *" | |
push: | |
paths: | |
- '.github/workflows/stale.yml' | |
jobs: | |
stale: | |
name: stale | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v3 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: 'このissue|PRは60日間更新がないため7日後にcloseします。closeしたくない場合はstaleラベルを外してください。' | |
close-issue-message: 'このissue|PRはstaleラベルを付けた後7日間更新がないためcloseしました。' | |
days-before-stale: 60 | |
days-before-close: 7 | |
stale-issue-label: stale | |
debug-only: ${{ github.event_name == 'push' }} |