|
17 | 17 | # under the License. |
18 | 18 | # |
19 | 19 |
|
20 | | -name: "Close Stale Issues" |
| 20 | +name: "Close Stale Issues and PRs" |
21 | 21 | on: |
22 | 22 | schedule: |
23 | 23 | - cron: '0 0 * * *' |
24 | 24 |
|
25 | 25 | permissions: |
26 | 26 | # All other permissions are set to none |
27 | 27 | issues: write |
| 28 | + pull-requests: write |
28 | 29 |
|
29 | 30 | jobs: |
30 | 31 | stale: |
31 | 32 | if: github.repository_owner == 'apache' |
32 | | - runs-on: ubuntu-22.04 |
| 33 | + runs-on: ubuntu-24.04 |
33 | 34 | steps: |
34 | | - - uses: actions/stale@v10.1.1 |
| 35 | + - uses: actions/stale@v10.2.0 |
35 | 36 | with: |
36 | | - stale-issue-label: 'stale' |
| 37 | + # stale issues |
| 38 | + stale-issue-label: 'stale,security' |
37 | 39 | exempt-issue-labels: 'not-stale' |
38 | 40 | days-before-issue-stale: 180 |
39 | 41 | days-before-issue-close: 14 |
40 | | - # Only close stale issues, leave PRs alone |
41 | | - days-before-pr-stale: -1 |
42 | 42 | stale-issue-message: > |
43 | 43 | This issue has been automatically marked as stale because it has been open for 180 days |
44 | 44 | with no activity. It will be closed in next 14 days if no further activity occurs. To |
|
47 | 47 | close-issue-message: > |
48 | 48 | This issue has been closed because it has not received any activity in the last 14 days |
49 | 49 | since being marked as 'stale' |
| 50 | + # stale PRs |
| 51 | + stale-pr-label: 'stale' |
| 52 | + exempt-pr-labels: 'not-stale,security' |
| 53 | + stale-pr-message: 'This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.' |
| 54 | + close-pr-message: 'This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.' |
| 55 | + days-before-pr-stale: 30 |
| 56 | + days-before-pr-close: 7 |
| 57 | + ascending: true |
| 58 | + operations-per-run: 200 |
0 commit comments