Stale Issues and PRs #169
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 (c) 2026, NVIDIA CORPORATION & AFFILIATES. 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. | |
| # Stale Issue and PR Management | |
| # | |
| # Automatically marks inactive issues/PRs as stale and eventually closes them. | |
| # This keeps the issue tracker focused on active work. | |
| # | |
| # Timelines: | |
| # Issues: 90 days → stale, 30 more days → closed | |
| # PRs: 30 days → stale, 30 more days → closed | |
| # | |
| # Exemptions: | |
| # - lifecycle/frozen: Never goes stale | |
| # - priority/critical: Never goes stale | |
| # - do-not-merge: PR won't be closed | |
| # | |
| # Pattern from: gpu-operator | |
| name: Stale Issues and PRs | |
| on: | |
| schedule: | |
| # Run daily at 6am UTC | |
| - cron: "0 6 * * *" | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| jobs: | |
| stale: | |
| name: Mark stale issues and PRs | |
| if: github.repository == 'nvidia/aicr' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/stale@1e223db275d687790206a7acac4d1a11bd6fe629 # v10.4.0 | |
| with: | |
| # Issue settings | |
| stale-issue-message: | | |
| This issue has been marked as stale due to 90 days of inactivity. | |
| It will be closed in 30 days unless there is new activity. | |
| To keep this issue open: | |
| - Add a comment with an update | |
| - Add the `lifecycle/frozen` label | |
| If this issue is no longer relevant, it's okay to let it close. | |
| days-before-stale: 90 | |
| stale-issue-label: 'lifecycle/stale' | |
| exempt-issue-labels: 'lifecycle/frozen,priority/critical,good first issue' | |
| # PR settings (shorter timeline) | |
| stale-pr-message: | | |
| This PR has been marked as stale due to 30 days of inactivity. | |
| It will be closed in 30 days unless there is new activity. | |
| To keep this PR open: | |
| - Push new commits or add a comment | |
| - Add the `lifecycle/frozen` label | |
| If this work is no longer needed, it's okay to let it close. | |
| days-before-pr-stale: 30 | |
| stale-pr-label: 'lifecycle/stale' | |
| exempt-pr-labels: 'lifecycle/frozen,do-not-merge' | |
| # Closing settings | |
| close-issue-message: | | |
| This issue was automatically closed due to inactivity after being marked as stale. | |
| If you believe this issue is still relevant: | |
| - Reopen with a comment providing updated details or context | |
| - Add the `lifecycle/frozen` label to prevent it from being closed again | |
| close-pr-message: | | |
| This pull request was automatically closed due to inactivity after being marked as stale. | |
| If you would like to continue this work: | |
| - Reopen and push new commits or add a comment with an update | |
| - Add the `lifecycle/frozen` label to prevent it from being closed again | |
| days-before-close: 30 | |
| # Performance | |
| operations-per-run: 500 |