Skip to content

Commit 9801764

Browse files
committed
added stale workflow
1 parent fa85330 commit 9801764

File tree

3 files changed

+43
-33
lines changed

3 files changed

+43
-33
lines changed

.github/stale.yml

-31
This file was deleted.

.github/workflows/format.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
name: Validate Commit
2-
1+
name: Code Format
32
on:
43
push:
54
branches:

.github/workflows/stale.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Stale Issues
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 11 * * *'
6+
7+
permissions:
8+
# contents: write # only for delete-branch option
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
stale:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/stale@v7
17+
with:
18+
# set 'stale' label
19+
stale-issue-label: stale
20+
# remove 'stale' label on update
21+
remove-issue-stale-when-updated: true
22+
labels-to-remove-when-unstale: stale
23+
# only stale the issues
24+
stale-issue-message: >
25+
This issue has been automatically marked as stale because it has not had
26+
recent activity. After 30 days from now, it will be closed if no further
27+
activity occurs.
28+
close-issue-message: >
29+
This issue was closed because it has been stalled for 30 days with no activity.
30+
Thank you for your contributions
31+
days-before-issue-stale: 90
32+
days-before-issue-close: 30
33+
# skip issues that have a milestone
34+
exempt-issue-milestones: true
35+
# skip those that are assigned
36+
exempt-issue-assignees: true
37+
# skip issues with label 'pinned'
38+
exempt-issue-labels: pinned,security,bug,failing test case,help wanted
39+
40+
# do not stale PRs
41+
days-before-pr-stale: -1
42+
days-before-pr-close: -1

0 commit comments

Comments
 (0)