-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 1.15 KB
/
stale-issues.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
name: "Close stale Issues and PRs"
on:
schedule:
- cron: "0 8 * * *"
env:
DAYS_BEFORE_STALE: 30
DAYS_BEFORE_CLOSE: 7
STALE_ISSUE_LABEL: 'no-issue-activity'
EXEMPT_ISSUE_LABEL: 'awaiting-approval'
STALE_PR_LABEL: 'no-pr-activity'
EXEMPT_PR_LABEL: 'awaiting-approval'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}
stale-issue-message: "This issue has become stale after ${{ env.DAYS_BEFORE_STALE }} days of inactivity. If you don't want it to be marked as stale, please add the `awaiting-approval` label."
stale-pr-message: "This Pull Request has become stale after ${{ env.DAYS_BEFORE_STALE }} days of inactivity. If you don't want it to be marked as stale, please add the `awaiting-approval` label."
stale-issue-label: ${{ env.STALE_ISSUE_LABEL }}
exempt-issue-label: ${{ env.EXEMPT_ISSUE_LABEL }}
stale-pr-label: ${{ env.STALE_PR_LABEL }}
exempt-pr-label: ${{ env.EXEMPT_PR_LABEL }}