|
| 1 | +--- |
| 2 | +# Copyright 2025 Google LLC |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +# |
| 16 | +# This workflow closes issues that have had no activity for 90 days. |
| 17 | +# |
| 18 | +# You can adjust the behavior by modifying this file. |
| 19 | +# For more information, see: |
| 20 | +# https://github.com/actions/stale |
| 21 | +name: Close Old |
| 22 | +on: |
| 23 | + workflow_dispatch: |
| 24 | + schedule: |
| 25 | + - cron: 0 1 1,15 * * |
| 26 | +jobs: |
| 27 | + stale: |
| 28 | + runs-on: ubuntu-latest |
| 29 | + permissions: |
| 30 | + issues: write |
| 31 | + steps: |
| 32 | + - uses: actions/stale@v8 |
| 33 | + with: |
| 34 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 35 | + days-before-issue-stale: 30 |
| 36 | + close-issue-message: > |
| 37 | + We are closing this as there was no activity in this issue for last 90 |
| 38 | + days. Please reopen if you’d like to discuss anything further. |
| 39 | + only-labels: obsolete |
| 40 | + exempt-issue-labels: awaiting-maintainer |
| 41 | + ascending: true |
| 42 | + days-before-close: 0 |
| 43 | + close-issue-reason: not_planned |
| 44 | + stale-issue-label: wontfix |
| 45 | + enable-statistics: true |
| 46 | + labels-to-remove-when-unstale: stale,obsolete |
0 commit comments