Skip to content

Commit 66f83ea

Browse files
committed
feat: added stale issue/pr check workflow
1 parent 3d01279 commit 66f83ea

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/stale-check.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Stale Issues and PRs
2+
3+
on:
4+
schedule:
5+
- cron: "0 6 * * *" # Daily at 6am UTC
6+
workflow_dispatch: {}
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
stale:
13+
name: Mark stale issues and PRs
14+
runs-on: linux-amd64-cpu4
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
timeout-minutes: 10
19+
steps:
20+
- uses: NVIDIA/dsx-github-actions/.github/actions/stale-check@d064e8779c341b8966dc811b2ae375c14b378738
21+
# Refer to https://github.com/NVIDIA/dsx-github-actions/blob/main/docs/actions/stale-check.md for more details
22+
with:
23+
days-before-issue-stale: '60'
24+
days-before-pr-stale: '30'
25+
days-before-close: '7'
26+
stale-issue-message: |
27+
This issue has been inactive for 60 days and will be closed soon.
28+
Please comment to keep it open.
29+
stale-pr-message: |
30+
This PR has been inactive for 30 days and will be closed soon.
31+
Please push commits or comment to keep it open.
32+
# Those labels are used to exempt issues and PRs from being marked or closed by the stale check
33+
exempt-issue-labels: 'lifecycle/frozen,priority/critical,epic'
34+
exempt-pr-labels: 'lifecycle/frozen,do-not-merge,wip'

0 commit comments

Comments
 (0)