kafka

Форк
0
/
stale.yml 
63 строки · 2.5 Кб
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
name: Stale PRs
17
on:
18
  schedule:
19
    - cron: '30 3 * * *'    # Run at 3:30 UTC nightly
20
  workflow_dispatch:
21
    inputs:
22
      dryRun:
23
        description: 'Dry Run'
24
        required: true
25
        default: true
26
        type: boolean
27
      operationsPerRun:
28
        description: 'Max GitHub API operations'
29
        required: true
30
        default: 30
31
        type: number
32

33
permissions:
34
  issues: write
35
  pull-requests: write
36

37
jobs:
38
  stale:
39
    runs-on: ubuntu-latest
40
    steps:
41
      - uses: actions/stale@v9
42
        with:
43
          debug-only: ${{ inputs.dryRun || false }}
44
          operations-per-run: ${{ inputs.operationsPerRun || 100 }}
45
          ascending: true
46
          days-before-stale: 90
47
          days-before-close: 30  # Since adding 'stale' will update the PR, days-before-close is relative to that.
48
          stale-pr-label: 'stale'
49
          stale-pr-message: |
50
            This PR is being marked as stale since it has not had any activity in 90 days. If you
51
            would like to keep this PR alive, please leave a comment asking for a review. If the PR has 
52
            merge conflicts, update it with the latest from the base branch.
53
            <p>
54
            If you are having difficulty finding a reviewer, please reach out on the 
55
            [mailing list](https://kafka.apache.org/contact).
56
            <p>
57
            If this PR is no longer valid or desired, please feel free to close it. If no activity
58
            occurs in the next 30 days, it will be automatically closed.
59
          close-pr-label: 'closed-stale'
60
          close-pr-message: |
61
            This PR has been closed since it has not had any activity in 120 days. If you feel like this
62
            was a mistake, or you would like to continue working on it, please feel free to re-open the 
63
            PR and ask for a review.
64

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.