Skip to content

Commit 770bf60

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

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/stale-check.yml

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

0 commit comments

Comments
 (0)