-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 1.03 KB
/
clean_project.yml
File metadata and controls
29 lines (25 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Clean repository
on:
schedule:
- cron: "0 4 * * *"
jobs:
cleanup:
name: Cleanup repository from stale draft, PRs and issues
runs-on: ubuntu-latest
steps:
- name: Delete draft releases
uses: hugo19941994/delete-draft-releases@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cleanup stale issues and PRs
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days'
stale-pr-message: 'This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days'
days-before-stale: 90
days-before-close: 10
stale-issue-label: 'no-activity'
exempt-issue-labels: 'work-in-progress'
stale-pr-label: 'no-activity'
exempt-pr-labels: 'work-in-progress'