8000 Add stale bot (#69) · apache/airflow-client-python@43750ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 43750ac

Browse files
authored
Add stale bot (#69)
1 parent 00390c9 commit 43750ac

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/stale.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
---
19+
# https://github.com/actions/stale
20+
name: 'Close stale PRs & Issues'
21+
on: # yamllint disable-line rule:truthy
22+
schedule:
23+
- cron: '0 0 * * *'
24+
permissions:
25+
# All other permissions are set to none
26+
pull-requests: write
27+
issues: write
28+
jobs:
29+
stale:
30+
runs-on: ubuntu-20.04
31+
steps:
32+
- uses: actions/stale@v5
33+
with:
34+
stale-pr-message: >
35+
This pull request has been automatically marked as stale because it has not had
36+
recent activity. It will be closed in 5 days if no further activity occurs. Thank you
37+
for your contributions.
38+
days-before-pr-stale: 45
39+
days-before-pr-close: 5
40+
exempt-pr-labels: 'pinned,security'
41+
only-issue-labels: 'pending-response'
42+
days-before-issue-stale: 30
43+
days-before-issue-close: 7
44+
stale-issue-message: >
45+
This issue has been automatically marked as stale because it has been open for 30 days
46+
with no response from the author. It will be closed in next 7 days if no further
47+
activity occurs from the issue author.
48+
close-issue-message: >
49+
This issue has been closed because it has not received response from the issue author.

0 commit comments

Comments
 (0)
0