Close stale issues and PRs #405
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: Copyright 2023 The Minder Authors | |
# SPDX-License-Identifier: Apache-2.0 | |
# This action closes stale issues and PRs that have had no activity for a period of time. | |
# Issues: | |
# All issues labeled with "waiting-for-feedback" are covered by this check. | |
# The label should be manually added when there's additional information requested from the author (or someone else) | |
# that is needed for triaging. | |
# PRs: | |
# All PRs are covered by this check. | |
name: 'Close stale issues and PRs' | |
on: | |
schedule: | |
- cron: '30 1 * * *' | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | |
with: | |
stale-issue-message: 'This issue needs additional information before we can continue. It is now marked as stale because it has been open for 30 days with no activity. Please provide the necessary details to continue or it will be closed in 30 days.' | |
stale-pr-message: 'This PR needs additional information before we can continue. It is now marked as stale because it has been open for 30 days with no activity. Please provide the necessary details to continue or it will be closed in 30 days.' | |
any-of-issue-labels: 'waiting-for-feedback' # only issues with this label are considered for closing | |
days-before-stale: 30 | |
days-before-close: 30 |