Skip to content

Commit d3b8fd8

Browse files
committed
Add support for stale PR workflow
1 parent ef394f9 commit d3b8fd8

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

‎.github/workflows/stale-prs.yml‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# Borrowed the file from Apache Parquet:
19+
# https://github.com/apache/parquet-java/blob/master/.github/workflows/stale-prs.yml
20+
21+
name: Stale pull requests
22+
23+
on:
24+
schedule:
25+
- cron: '0 0 * * *'
26+
workflow_dispatch:
27+
28+
permissions:
29+
pull-requests: write
30+
31+
jobs:
32+
stale:
33+
runs-on: ubuntu-slim
34+
steps:
35+
- name: Mark and close stale pull requests
36+
uses: actions/stale@v11
37+
with:
38+
repo-token: ${{ secrets.GITHUB_TOKEN }}
39+
# Don't touch issues.
40+
days-before-issue-stale: -1
41+
days-before-issue-close: -1
42+
# PRs stale after 1 month of inactivity and closed 1 week later.
43+
days-before-pr-stale: 30
44+
days-before-pr-close: 7
45+
stale-pr-label: stale
46+
stale-pr-message: >
47+
This pull request has been automatically marked as stale because it has
48+
had no activity for at least 1 month. If you are still working on this
49+
change or plan to move it forward, please leave a comment or push a new
50+
commit so we know to keep it open. Otherwise, this PR will be closed
51+
automatically in about one week. Thank you for your contribution to
52+
Apache Iceberg!
53+
close-pr-message: >
54+
Closing this pull request due to at least 1 month of inactivity. If you
55+
would like to continue the work, please feel free to reopen this pull
56+
request or open a new one. Thank you for your contribution to
57+
Apache Iceberg!

0 commit comments

Comments
 (0)