Close stale issues and pull requests #47
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 and pull requests | |
on: | |
schedule: | |
- cron: "0 7 * * *" | |
push: | |
branches: [ main ] | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get bot token | |
id: generate_token | |
uses: tibdex/github-app-token@v1 | |
with: | |
app_id: ${{ secrets.TOKENBASE_BOT_APP_ID }} | |
private_key: ${{ secrets.TOKENBASE_BOT_PRIVATE_KEY }} | |
- uses: actions/stale@v3 | |
with: | |
repo-token: ${{ steps.generate_token.outputs.token }} | |
stale-issue-message: > | |
This issue is stale because it has been open 8 weeks with no activity. | |
We probably just don't have the bandwith to work on this. Sorry! | |
Unless there is an update, it will be closed in 7 days. | |
stale-pr-message: 'This pull request is stale because it has been open 8 weeks with no activity. Unless there is an update, it will be closed in 7 days.' | |
stale-issue-label: 'stale' | |
stale-pr-label: 'stale' | |
days-before-stale: 57 | |
days-before-close: 7 | |
operations-per-run: 3000 |