Mark stale issues and pull requests #46
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
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. | |
# | |
# You can adjust the behavior by modifying this file. | |
# For more information, see: | |
# https://github.com/actions/stale | |
name: Mark stale issues and pull requests | |
on: | |
schedule: | |
# https://crontab.guru/#0_5_*_*_1, “At 05:00 on Mondays.” | |
- cron: '0 5 * * 1' | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- id: create_token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ secrets.GOINVO_BOT_APP_ID }} | |
private_key: ${{ secrets.GOINVO_BOT_PEM_KEY }} | |
- uses: actions/stale@v5 | |
with: | |
repo-token: ${{ steps.create_token.outputs.token }} | |
stale-issue-message: 'This issue may be stale. Please remove the `stale-issue` label if this is still relevant.' | |
stale-pr-message: 'This PR may be stale. Please remove the `stale-pr` label if this is still relevant.' | |
stale-issue-label: 'stale-issue' | |
stale-pr-label: 'stale-pr' |