Skip to content

Commit 4880d78

Browse files
authored
Update slate config for PRs (#3125)
Bring Iceberg Java's stale.yml workflow over to handle stale PRs in addition to the existing stale issues behavior. Borrowed from the Iceberg rust implementation: apache/iceberg-rust#2171 # Rationale for this change The iceberg-python PR list is grown over the years and needs clean up ## Are these changes tested? Existing CI enhancement ## Are there any user-facing changes? No
1 parent 0fcbe78 commit 4880d78

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/stale.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
# under the License.
1818
#
1919

20-
name: "Close Stale Issues"
20+
name: "Close Stale Issues and PRs"
2121
on:
2222
schedule:
2323
- cron: '0 0 * * *'
2424

2525
permissions:
2626
# All other permissions are set to none
2727
issues: write
28+
pull-requests: write
2829

2930
jobs:
3031
stale:
@@ -33,12 +34,11 @@ jobs:
3334
steps:
3435
- uses: actions/stale@v10.2.0
3536
with:
36-
stale-issue-label: 'stale'
37+
# stale issues
38+
stale-issue-label: 'stale,security'
3739
exempt-issue-labels: 'not-stale'
3840
days-before-issue-stale: 180
3941
days-before-issue-close: 14
40-
# Only close stale issues, leave PRs alone
41-
days-before-pr-stale: -1
4242
stale-issue-message: >
4343
This issue has been automatically marked as stale because it has been open for 180 days
4444
with no activity. It will be closed in next 14 days if no further activity occurs. To
@@ -47,3 +47,12 @@ jobs:
4747
close-issue-message: >
4848
This issue has been closed because it has not received any activity in the last 14 days
4949
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

Comments
 (0)