|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 3 | +# or more contributor license agreements. See the NOTICE file |
| 4 | +# distributed with this work for additional information |
| 5 | +# regarding copyright ownership. The ASF licenses this file |
| 6 | +# to you under the Apache License, Version 2.0 (the |
| 7 | +# "License"); you may not use this file except in compliance |
| 8 | +# with the License. You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, |
| 13 | +# software distributed under the License is distributed on an |
| 14 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | +# KIND, either express or implied. See the License for the |
| 16 | +# specific language governing permissions and limitations |
| 17 | +# under the License. |
| 18 | +# |
| 19 | + |
| 20 | +name: "Close Stale Issues" |
| 21 | +on: |
| 22 | + schedule: |
| 23 | + - cron: '0 0 * * *' |
| 24 | + |
| 25 | +permissions: |
| 26 | + # All other permissions are set to none |
| 27 | + issues: write |
| 28 | + |
| 29 | +jobs: |
| 30 | + stale: |
| 31 | + if: github.repository_owner == 'apache' |
| 32 | + runs-on: ubuntu-22.04 |
| 33 | + steps: |
| 34 | + |
| 35 | + with: |
| 36 | + stale-issue-label: 'stale' |
| 37 | + exempt-issue-labels: 'not-stale' |
| 38 | + days-before-issue-stale: 180 |
| 39 | + days-before-issue-close: 14 |
| 40 | + # Only close stale issues, leave PRs alone |
| 41 | + days-before-pr-stale: -1 |
| 42 | + stale-issue-message: > |
| 43 | + This issue has been automatically marked as stale because it has been open for 180 days |
| 44 | + with no activity. It will be closed in next 14 days if no further activity occurs. To |
| 45 | + permanently prevent this issue from being considered stale, add the label 'not-stale', |
| 46 | + but commenting on the issue is preferred when possible. |
| 47 | + close-issue-message: > |
| 48 | + This issue has been closed because it has not received any activity in the last 14 days |
| 49 | + since being marked as 'stale' |
0 commit comments