This is an automated email from the ASF dual-hosted git repository. fanrui pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push: new fd0222041b1 [FLINK-37026] Add Stale PR GitHub Action workflow fd0222041b1 is described below commit fd0222041b1a8512b8da9a9d1a0265d62b4462e0 Author: Thomas Cooper <c...@tomcooper.dev> AuthorDate: Tue Jan 7 17:02:34 2025 +0000 [FLINK-37026] Add Stale PR GitHub Action workflow Signed-off-by: Thomas Cooper <c...@tomcooper.dev> --- .github/workflows/stale.yml | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000000..a7fffe89d3c --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,61 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# This workflow labels and then closes stale PRs that haven't seen attention +# for several months. + +name: Stale PRs +on: + schedule: + #- cron: '15 6 * * *' # Run once a day at 6:15 UTC + - cron: '0 */6 * * *' # Initially we run every 6 hours until we have reached steady state + workflow_dispatch: + inputs: + operationsPerRun: + description: 'Max GitHub API operations' + required: true + default: 200 # Initially we set this at a high level to clear the backlog + type: number + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + operations-per-run: ${{ inputs.operationsPerRun || 500 }} + ascending: true + days-before-stale: 180 # This should eventually be reduced to 90 + days-before-close: 90 # This should eventually be reduced to 30 + stale-pr-label: 'stale' + stale-pr-message: | + This PR is being marked as stale since it has not had any activity in the last 180 days. + If you would like to keep this PR alive, please leave a comment asking for a review. + If the PR has merge conflicts, update it with the latest from the base branch. + <p> + If you are having difficulty finding a reviewer, please reach out to the + [community](https://flink.apache.org/what-is-flink/community/). + <p> + If this PR is no longer valid or desired, please feel free to close it. + If no activity occurs in the next 90 days, it will be automatically closed. + close-pr-label: 'closed-stale' + close-pr-message: | + This PR has been closed since it has not had any activity in 270 days. + If you feel like this was a mistake, or you would like to continue working on it, + please feel free to re-open the PR and ask for a review.