Skip to content

Commit e87e5e4

Browse files
authored
chore(ci): add stale action for old Issues/PRs (NVIDIA#1581)
Adds a once-per-day action for marking PRs/Issues as stale | Type | Notification | Close | Label-to-Skip | |:------|:-------------|:--------:|:--------------:| | Issue | 60 days | +7 days | `Needs Triage` | | PR | 30 days | +14 days | `Under Review` | Closes ## By Submitting this PR I confirm: - I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/NeMo-Agent-Toolkit/blob/develop/docs/source/resources/contributing/index.md). - We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license. - Any contribution which contains commits that are not Signed-Off will not be accepted. - When the PR is ready for review, new or existing tests cover these changes. - When the PR is ready for review, the documentation is up to date with these changes. ## Summary by CodeRabbit * **Chores** * Added an automated daily repository workflow to mark and close stale issues and pull requests. Configured inactivity thresholds and timelines (issue stale/close and PR stale/close), custom messages for stale and closed states, and exemptions for specified labels to prevent automated actions on items under active review. Authors: - Will Killian (https://github.com/willkill07) Approvers: - https://github.com/mnajafian-nv URL: NVIDIA#1581
1 parent 57dba81 commit e87e5e4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
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+
name: 'Close stale issues and PRs'
17+
on:
18+
schedule:
19+
- cron: '0 12 * * *'
20+
21+
jobs:
22+
stale:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/stale@v10
26+
with:
27+
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
28+
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.'
29+
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
30+
close-pr-message: 'This PR was closed because it has been stalled for 14 days with no activity.'
31+
days-before-issue-stale: 60
32+
days-before-issue-close: 7
33+
days-before-pr-stale: 30
34+
days-before-pr-close: 14
35+
exempt-issue-labels: 'Needs Triage'
36+
exempt-pr-labels: 'Under Review'

0 commit comments

Comments
 (0)