Mark stale issues and pull requests #721
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: '31 3 * * *' # randomly chosen time of day | |
workflow_dispatch: | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v4 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
exempt-issue-labels: 'stale-exempt' | |
exempt-pr-labels: 'stale-exempt' | |
days-before-issue-stale: 42 | |
days-before-pr-stale: 30 | |
days-before-close: 7 | |
stale-issue-message: |- | |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. | |
→ If there's no activity within a week, then a bot will automatically close this. | |
Thanks for helping to improve Shopify's dev tooling and experience. | |
P.S. You can learn more about why we stale issues [here](https://github.com/Shopify/cli/blob/main/docs/decision-record/2023_02-Stale-action.md). | |
stale-pr-message: |- | |
This PR seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. | |
→ If there's no activity within a week, then a bot will automatically close this. | |
Thanks for helping to improve Shopify's dev tooling and experience. | |
stale-issue-label: 'no-issue-activity' | |
stale-pr-label: 'no-pr-activity' | |
ascending: true | |
# The math seems a bit fuzzy, but this should amount to a max of 50 issues daily. | |
# But then the same issues get checked first so we don't end up progressing too quickly until we can close what we started. | |
# Hopefully https://github.com/actions/stale/issues/692 will be closed and fix some of this mess. | |
operations-per-run: 200 |