Skip to content

Commit 73fb0f9

Browse files
committed
feat: add stale issue action
1 parent 39b7ce2 commit 73fb0f9

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright 2025 NVIDIA CORPORATION
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: KAI Scheduler - Mark stale issues
5+
6+
on:
7+
schedule:
8+
- cron: "0 0 * * *" # runs once a day at midnight UTC
9+
workflow_dispatch:
10+
inputs:
11+
dry_run:
12+
description: "Run in dry-run mode (no labels/comments applied)"
13+
required: false
14+
default: "true"
15+
16+
jobs:
17+
stale:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Run stale action
22+
uses: actions/stale@v9
23+
with:
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
26+
# Apply only to issues, not PRs
27+
days-before-stale: 90 # 3 months
28+
days-before-close: -1 # don't auto-close
29+
stale-issue-label: "stale"
30+
stale-issue-message: >
31+
Issue has been open for over 3 months with no activity.
32+
It’s being marked as stale.
33+
Please update if it’s still relevant.
34+
35+
# Optional: exclude some labels if needed
36+
only-labels: "" # leave empty to include all
37+
38+
# Debug-only mode (acts as a dry run)
39+
debug-only: ${{ github.event.inputs.dry_run }}
40+
41+
- name: Log dry-run status
42+
run: |
43+
echo "Dry-run mode: ${{ github.event.inputs.dry_run }}"

0 commit comments

Comments
 (0)