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 |
| 5 | - cron: "0 0 * * *" |
| 6 | workflow_dispatch: # Allow to run workflow manually |
| 7 | issue_comment: # Run workflow on comments |
| 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: |
| 19 | repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 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. |
| 28 | exempt-issue-labels: "pinned,security,enhancement" |
| 29 | exempt-pr-labels: "pinned,security,enhancement" |
| 30 | stale-issue-label: "stale" |
| 31 | stale-pr-label: "stale" |
| 32 | operations-per-run: "250" |
| 33 | ascending: "true" |
| 34 | #DRY-RUN |
| 35 | debug-only: "false" |