Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 1 | name: 'Close stale issues and PRs' |
| 2 | on: |
| 3 | schedule: |
| 4 | # Once every day at midnight UTC |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame^] | 5 | - cron: "0 0 * * *" |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 6 | workflow_dispatch: # Allow to run workflow manually |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame^] | 7 | issue_comment: # Run workflow on comments |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 8 | |
| 9 | jobs: |
| 10 | stale: |
| 11 | runs-on: ubuntu-latest |
| 12 | permissions: |
| 13 | issues: write |
| 14 | pull-requests: write |
| 15 | steps: |
| 16 | - name: Mark/Close Stale Issues and Pull Requests 🗑️ |
| 17 | uses: actions/stale@v4 |
| 18 | with: |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame^] | 19 | repo-token: ${{ secrets.STALE_ACTION_PAT }} |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 20 | days-before-stale: 60 |
| 21 | days-before-close: 7 |
| 22 | stale-issue-message: > |
| 23 | This issue has been automatically marked as stale because it has not had |
| 24 | recent activity. It will be closed if no further activity occurs. |
| 25 | stale-pr-message: > |
| 26 | This pull request has been automatically marked as stale because it has not had |
| 27 | recent activity. It will be closed if no further activity occurs. |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame^] | 28 | exempt-issue-labels: "pinned,security,enhancement,investigating" |
| 29 | exempt-pr-labels: "pinned,security,enhancement,investigating" |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 30 | stale-issue-label: "stale" |
| 31 | stale-pr-label: "stale" |
| 32 | operations-per-run: "250" |
| 33 | ascending: "true" |
| 34 | #DRY-RUN |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame^] | 35 | debug-only: "false" |