|
1 |
| -name: 'Close stale issues and PRs' |
| 1 | +name: "Close stale issues and PRs" |
2 | 2 | on:
|
3 | 3 | schedule:
|
4 |
| - - cron: '30 1 * * *' |
| 4 | + - cron: "30 1 * * *" # run at 1:30am every day |
5 | 5 |
|
6 | 6 | permissions:
|
7 | 7 | contents: read
|
8 | 8 |
|
9 | 9 | jobs:
|
10 | 10 | stale:
|
11 | 11 | permissions:
|
12 |
| - issues: write # for actions/stale to close stale issues |
13 |
| - pull-requests: write # for actions/stale to close stale PRs |
| 12 | + issues: write # for actions/stale to close stale issues |
| 13 | + pull-requests: write # for actions/stale to close stale PRs |
14 | 14 | runs-on: ubuntu-22.04
|
15 | 15 | steps:
|
16 | 16 | - uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
|
17 | 17 | with:
|
18 | 18 | repo-token: ${{ secrets.GITHUB_TOKEN }}
|
19 |
| - stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days.' |
20 |
| - stale-pr-message: 'This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days.' |
21 |
| - close-issue-message: 'This issue was closed because it has been stalled for 10 days with no activity.' |
22 |
| - close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.' |
23 |
| - stale-issue-label: 'stale' |
24 |
| - stale-pr-label: 'stale' |
| 19 | + stale-issue-message: "This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days." |
| 20 | + stale-pr-message: "This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days." |
| 21 | + close-issue-message: "This issue was closed because it has been stalled for 10 days with no activity." |
| 22 | + close-pr-message: "This PR was closed because it has been stalled for 10 days with no activity." |
| 23 | + stale-issue-label: "stale" |
| 24 | + stale-pr-label: "stale" |
25 | 25 | exempt-all-assignees: true
|
26 |
| - exempt-issue-labels: 'proposal' |
| 26 | + exempt-issue-labels: "proposal" |
27 | 27 | operations-per-run: 100
|
28 | 28 | days-before-stale: 90
|
29 | 29 | days-before-close: 10
|
0 commit comments