Mark and close stale issues #68
This file contains hidden or 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 2026 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. | |
| # This workflow warns and then closes issues that have had no activity for a specified amount of time. | |
| name: Mark and close stale issues | |
| on: | |
| schedule: | |
| # Scheduled to run at 1:30 UTC everyday | |
| - cron: '30 1 * * *' | |
| workflow_dispatch: {} | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| days-before-issue-stale: 7 | |
| days-before-issue-close: 2 | |
| operations-per-run: 100 | |
| stale-issue-label: "status:stale" | |
| close-issue-reason: not_planned | |
| any-of-labels: "status:awaiting user response" | |
| remove-stale-when-updated: true | |
| labels-to-remove-when-unstale: 'status:awaiting user response,status:stale' | |
| stale-issue-message: > | |
| This issue has been marked as stale because it has been open for 7 days with no activity. It will be closed in 2 days if no further activity occurs. | |
| close-issue-message: > | |
| This issue was closed because it has been inactive for 9 days. | |
| Please post a new issue if you need further assistance. Thanks! | |
| # Label that can be assigned to issues to exclude them from being marked as stale | |
| exempt-issue-labels: 'override-stale' |