Skip to content

Commit 49fa393

Browse files
committed
[FLINK-37650] Enable Stale PR Github action
Signed-off-by: Thomas Cooper <[email protected]>
1 parent 4606010 commit 49fa393

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/workflows/stale.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# This workflow labels and then closes stale PRs that haven't seen attention
17+
# for several months.
18+
19+
name: Stale PRs
20+
on:
21+
schedule:
22+
- cron: '15 6 * * *' # Run once a day at 6:15 UTC
23+
workflow_dispatch:
24+
inputs:
25+
operationsPerRun:
26+
description: 'Max GitHub API operations'
27+
required: true
28+
default: 20
29+
type: number
30+
31+
permissions:
32+
issues: write
33+
pull-requests: write
34+
actions: write
35+
36+
jobs:
37+
stale:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/stale@v9
41+
with:
42+
operations-per-run: ${{ inputs.operationsPerRun || 500 }}
43+
ascending: true
44+
days-before-stale: 90
45+
days-before-close: 30
46+
stale-pr-label: 'stale'
47+
stale-pr-message: |
48+
This PR is being marked as stale since it has not had any activity in the last 90 days.
49+
If you would like to keep this PR alive, please leave a comment asking for a review.
50+
If the PR has merge conflicts, update it with the latest from the base branch.
51+
52+
If you are having difficulty finding a reviewer, please reach out to the
53+
community, contact details can be found here: https://flink.apache.org/what-is-flink/community/
54+
55+
If this PR is no longer valid or desired, please feel free to close it.
56+
If no activity occurs in the next 30 days, it will be automatically closed.
57+
close-pr-label: 'closed-stale'
58+
close-pr-message: |
59+
This PR has been closed since it has not had any activity in 120 days.
60+
If you feel like this was a mistake, or you would like to continue working on it,
61+
please feel free to re-open the PR and ask for a review.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ tools/flink
3636
tools/flink-*
3737
tools/releasing/release
3838
tools/japicmp-output
39+
.vscode/
3940

4041
# Generated file, do not store in git
4142
flink-connector-kafka/.idea

0 commit comments

Comments
 (0)