blob: cfb360371a3210b61d493f518d3426650ef142c2 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001name: 'Close stale issues and PRs'
2on:
3 schedule:
4 # Once every day at midnight UTC
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01005 - cron: "0 0 * * *"
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02006 workflow_dispatch: # Allow to run workflow manually
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01007 issue_comment: # Run workflow on comments
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02008
9jobs:
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 Benkard12a57352021-12-28 18:02:04 +010019 repo-token: ${{ secrets.STALE_ACTION_PAT }}
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020020 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 Benkard12a57352021-12-28 18:02:04 +010028 exempt-issue-labels: "pinned,security,enhancement,investigating"
29 exempt-pr-labels: "pinned,security,enhancement,investigating"
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020030 stale-issue-label: "stale"
31 stale-pr-label: "stale"
32 operations-per-run: "250"
33 ascending: "true"
34 #DRY-RUN
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010035 debug-only: "false"