-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.17 KB
/
stale-branches.yml
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
30
31
32
33
34
35
36
37
38
39
name: Stale Branches/PRs
on:
schedule:
- cron: '30 1 * * *'
permissions:
issues: write
contents: write
pull-requests: write
jobs:
stale_branches:
runs-on: ubuntu-latest
steps:
- name: Stale Branches
uses: gamechanger/[email protected]
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
days-before-stale: 45
days-before-delete: 60
comment-updates: false
max-issues: 200
tag-committer: true
stale-branch-label: 'stale branch 🗑️'
compare-branches: 'info'
branches-filter-regex: '^(?!(dependabot|LTS))'
stale_prs:
runs-on: ubuntu-latest
steps:
- name: Stale PRs
uses: actions/stale@v8
with:
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.'
days-before-pr-stale: 30
days-before-pr-close: 7
stale-pr-label: 'no-pr-activity'
exempt-pr-labels: 'awaiting-approval,work-in-progress,dependencies'