Close stale issues and PRs #6
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
# Copyright 2024 Google LLC | |
# | |
# 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 issues and PRs" | |
on: | |
schedule: | |
- cron: "30 1 * * *" | |
permissions: {} | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: "A friendly reminder that this issue had no activity for 120 days." | |
stale-pr-message: "A friendly reminder that this PR had no activity for 120 days." | |
stale-issue-label: "stale" | |
stale-pr-label: "stale" | |
days-before-stale: 120 | |
days-before-close: 90 | |
remove-stale-when-updated: true | |
exempt-pr-labels: "no-auto-close" | |
exempt-issue-labels: "no-auto-close,enhancement,good first issue,help wanted" | |
operations-per-run: 1000 | |
close-issue-label: "auto-closed" | |
close-pr-label: "auto-closed" | |
close-issue-message: "This issue has been closed due to lack of activity." | |
close-pr-message: "This PR has been closed due to lack of activity." |