Mark stale issues and pull requests #108
This file contains hidden or 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 */6 * * *' | |
| workflow_dispatch: # ← add this | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| days-before-pr-stale: 7 | |
| days-before-pr-close: 14 | |
| stale-pr-label: inactive | |
| close-pr-label: auto-close | |
| exempt-pr-labels: keep-open | |
| remove-pr-stale-when-updated: true | |
| operations-per-run: 100 # increase as needed; use -1 for unlimited | |
| stale-pr-message: > | |
| This pull request has been inactive for 7 days. | |
| <br/>If you are finished with your changes, don't forget to sign off. See the [contributor guide](https://review.learn.microsoft.com/help/contribute/contribute-how-to-write-pull-request-automation) for instructions. | |
| <br/>If this PR is inactive for 14 more days, it will be closed automatically. Thank you! | |
| close-pr-message: > | |
| <br/>This pull request has been inactive for a total of 21 days. At this time, we are closing the PR. | |
| <br/>If you decide to continue working on your change, you can reopen the PR and continue working. Thank you! | |