Skip to content

Commit 290805b

Browse files
committed
Added issues cleaner.
1 parent 56e22f8 commit 290805b

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build
1+
name: 'Continuous Integration'
22
on:
33
push:
44
branches-ignore:
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Close stale issues"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- env:
11+
DAYS_TO_STALE: ${{ 5 }}
12+
DAYS_TO_CLOSE: ${{ 2 }}
13+
uses: actions/stale@v3
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
stale-issue-message: 'This issue is stale because it has been open ${{ env.DAYS_TO_STALE }} days with no activity. Remove stale label or comment or this will be closed in ${{ env.DAYS_TO_STALE }} days'
17+
stale-pr-message: 'Stale pull request message'
18+
stale-issue-label: 'no-activity'
19+
exempt-issue-labels: 'pending,in-progress'
20+
stale-pr-label: 'no-activity'
21+
exempt-pr-labels: 'pending,in-progress'
22+
days-before-stale: ${{ env.DAYS_TO_STALE }}
23+
days-before-close: ${{ env.DAYS_TO_CLOSE }}

0 commit comments

Comments
 (0)