|
1 | | -# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. |
2 | | -# |
3 | | -# You can adjust the behavior by modifying this file. |
4 | | -# For more information, see: |
5 | | -# https://github.com/actions/stale |
6 | | -name: Mark stale issues and pull requests |
| 1 | +name: "Mark and Close Stale Issues/PRs" |
7 | 2 |
|
8 | 3 | on: |
9 | 4 | schedule: |
10 | | - - cron: '26 10 * * *' |
| 5 | + - cron: "0 0 * * *" # runs daily at midnight |
| 6 | + workflow_dispatch: # allows manual triggering |
11 | 7 |
|
12 | 8 | jobs: |
13 | 9 | stale: |
14 | | - |
15 | 10 | runs-on: ubuntu-latest |
16 | | - permissions: |
17 | | - issues: write |
18 | | - pull-requests: write |
19 | | - |
20 | 11 | steps: |
21 | | - - uses: actions/stale@v5 |
22 | | - with: |
23 | | - repo-token: ${{ secrets.GITHUB_TOKEN }} |
24 | | - stale-issue-message: 'Stale issue message' |
25 | | - stale-pr-message: 'Stale pull request message' |
26 | | - stale-issue-label: 'no-issue-activity' |
27 | | - stale-pr-label: 'no-pr-activity' |
| 12 | + - name: Run stale action |
| 13 | + uses: actions/stale@v9 |
| 14 | + with: |
| 15 | + repo-token: "${{ secrets.GITHUB_TOKEN }}" |
| 16 | + stale-issue-message: "This issue has been automatically marked as stale due to inactivity. If you'd like to keep it open, please leave a comment in the next 7 days." |
| 17 | + stale-pr-message: "This pull request has been automatically marked as stale due to inactivity. If you’d still like to see it merged, please comment within the next 7 days." |
| 18 | + stale-issue-label: "stale" |
| 19 | + stale-pr-label: "stale" |
| 20 | + days-before-stale: 30 |
| 21 | + days-before-close: 7 |
| 22 | + days-before-pr-stale: 30 |
| 23 | + days-before-pr-close: 7 |
| 24 | + exempt-issue-labels: "bug,enhancement" |
| 25 | + exempt-pr-labels: "WIP" |
| 26 | + operations-per-run: 50 |
| 27 | + delete-branch-on-close: false |
| 28 | + env: |
| 29 | + TZ: Europe/Zurich |
0 commit comments