Mark stale issues and PRs #10
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: Mark stale issues and PRs | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" # Run daily at midnight UTC | |
| workflow_dispatch: # Allow manual trigger | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Mark stale issues and PRs | |
| uses: actions/stale@v10 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| # Issues configuration | |
| 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. | |
| close-issue-message: | | |
| This issue was automatically closed because it has not had activity for an extended period. | |
| days-before-issue-stale: 60 | |
| days-before-issue-close: 7 | |
| stale-issue-label: stale | |
| exempt-issue-labels: "pinned,security,bug" | |
| # Pull requests configuration | |
| 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. | |
| close-pr-message: | | |
| This pull request was automatically closed because it has not had activity for an extended period. | |
| days-before-pr-stale: 45 | |
| days-before-pr-close: 7 | |
| stale-pr-label: stale | |
| exempt-pr-labels: "pinned,security,work-in-progress" | |
| # General configuration | |
| operations-per-run: 30 | |
| remove-stale-when-updated: true |