Stale issues & PRs #4
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
| name: Stale issues & PRs | |
| on: | |
| schedule: | |
| - cron: "30 1 * * *" # Runs every day at 1:30 AM | |
| # Allows you to manually trigger the workflow from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| # ----------------------------------------------------------- | |
| # Configuration mapped from your old stale.yml | |
| # Adjust these numbers and messages if your old config differed | |
| # ----------------------------------------------------------- | |
| # Idle number of days before marking issues/PRs stale (Old: daysUntilStale) | |
| days-before-stale: 45 | |
| # Idle number of days before closing stale issues/PRs (Old: daysUntilClose) | |
| days-before-close: 7 | |
| # Label to apply when marking as stale (Old: staleLabel) | |
| stale-issue-label: "won't fix" | |
| stale-pr-label: "won't fix" | |
| # Labels that prevent an issue/PR from becoming stale (Old: exemptLabels) | |
| exempt-issue-labels: "pinned, security" | |
| exempt-pr-labels: "pinned, security" | |
| # Old stale.yml ignored issues with milestones and assignees. | |
| exempt-all-issue-milestones: true | |
| exempt-all-issue-assignees: true | |
| # NOTE: actions/stale@v10 has no equivalent to old `exemptProjects: true`. | |
| # Comment to post when marking as stale (Old: markComment) | |
| stale-issue-message: > | |
| This issue has been automatically marked as stale because it has not had | |
| recent activity. It will be closed if no further activity occurs. Thank you | |
| for your contributions. | |
| stale-pr-message: > | |
| This pull request has been automatically marked as stale because it has not had | |
| recent activity. It will be closed if no further activity occurs. Thank you | |
| for your contributions. | |
| # Comment to post when closing (Old: closeComment) | |
| close-issue-message: "" | |
| close-pr-message: "" |