You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: .github/workflows/stale.yml
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,15 @@
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:
@@ -33,12 +34,11 @@ jobs:
33
34
steps:
34
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,3 +47,12 @@ jobs:
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.'
0 commit comments