|
| 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 | +name: Stale pull requests |
| 19 | + |
| 20 | +on: |
| 21 | + schedule: |
| 22 | + - cron: '0 0 * * *' |
| 23 | + workflow_dispatch: |
| 24 | + |
| 25 | +permissions: |
| 26 | + pull-requests: write |
| 27 | + issues: write |
| 28 | + |
| 29 | +jobs: |
| 30 | + stale: |
| 31 | + runs-on: ubuntu-slim |
| 32 | + steps: |
| 33 | + - name: Mark and close stale pull requests |
| 34 | + uses: actions/stale@v9 |
| 35 | + with: |
| 36 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 37 | + # Don't touch issues. |
| 38 | + days-before-issue-stale: -1 |
| 39 | + days-before-issue-close: -1 |
| 40 | + # PRs stale after 2 months of inactivity and closed 1 month later. |
| 41 | + days-before-pr-stale: 60 |
| 42 | + days-before-pr-close: 30 |
| 43 | + stale-pr-label: stale |
| 44 | + stale-pr-message: > |
| 45 | + This pull request has been automatically marked as stale because it has |
| 46 | + had no activity for at least 2 months. If you are still working on this |
| 47 | + change or plan to move it forward, please leave a comment or push a new |
| 48 | + commit so we know to keep it open. Otherwise, this PR will be closed |
| 49 | + automatically in about one month. Thank you for your contribution to |
| 50 | + Apache Parquet! |
| 51 | + close-pr-message: > |
| 52 | + Closing this pull request due to at least 3 months of inactivity. If you |
| 53 | + would like to continue the work, please feel free to reopen this pull |
| 54 | + request or open a new one. Thank you for your contribution to |
| 55 | + Apache Parquet! |
0 commit comments