Skip to content

Close Stale

Close Stale #1361

# Copyright (c) 2021 VMware, Inc. All Rights Reserved.
#
# Licensed 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.
name: Close Stale
on:
schedule:
- cron: "0 1 * * *" # daily
jobs:
stale:
runs-on: ubuntu-20.04
steps:
- uses: "actions/stale@v9"
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}" # No need to setup
stale-issue-message: |-
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Mark as fresh by adding the comment `/remove-lifecycle stale`.
stale-issue-label: "lifecycle/stale"
exempt-issue-labels: "lifecycle/frozen"
stale-pr-message: |-
This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Mark as fresh by adding the comment `/remove-lifecycle stale`.
stale-pr-label: "lifecycle/stale"
exempt-pr-labels: "lifecycle/frozen"
days-before-stale: 90
days-before-close: 30