-
Notifications
You must be signed in to change notification settings - Fork 79
32 lines (29 loc) · 947 Bytes
/
stale.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
name: 'Close stale issues'
on:
schedule:
- cron: '11 11 * * *'
env:
REPO_NAME: ${{ github.event.repository.name }}
permissions:
contents: write
issues: write
pull-requests: write
jobs:
stale:
name: Stale
runs-on: ubuntu-latest
steps:
- name: get repository name
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- uses: actions/stale@v8
with:
stale-issue-message: 'Issue is stale and will be closed in 7 days unless there is new activity'
stale-pr-message: 'PR is stale and will be closed in 7 days unless there is new activity'
stale-issue-label: 'stale'
exempt-issue-labels: 'stale-exempt,kind/feature-request'
stale-pr-label: 'stale'
exempt-pr-labels: 'stale-exempt'
remove-stale-when-updated: 'True'
operations-per-run: 100
days-before-stale: 60
days-before-close: 7