Mark stale issues and pull requests #767
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: | |
- cron: '0 0 * * *' | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v5 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: 'Marked as stale issue. Will be closed later if no activity for a while. ' | |
stale-pr-message: 'Marked as stale PR. Will be closed later if no activity for a while.' | |
stale-issue-label: 'no-issue-activity' | |
stale-pr-label: 'no-pr-activity' | |
# The labels to apply when an issue is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2") | |
exempt-issue-labels: 'official' | |
operations-per-run: 500 | |
# The labels to apply when a pull request is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2") | |
exempt-pr-labels: 'official' | |
# The number of days old an issue can be before marking it stale. Set to -1 to never mark issues or pull requests as stale automatically. | |
days-before-stale: 90 | |
# The number of days to wait to close an issue or pull request after it being marked stale. Set to -1 to never close stale issues. | |
days-before-close: 45 | |