-
Notifications
You must be signed in to change notification settings - Fork 489
42 lines (35 loc) · 1.54 KB
/
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
33
34
35
36
37
38
39
40
41
42
name: Mark Stale issues
name: Mark stale pull requests
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'The issue labelled as stale because it has been open for more than 7 days with inactivity.'
days-before-stale: 7
days-before-close: -1
stale-issue-label: 'Stale'
exempt-issue-labels: 'Announcement,Pinned'
remove-stale-when-updated: true
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
# Token for the repository. Can be passed in using `{{ secrets.GITHUB_TOKEN }}`.
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'Due to inactivity this pull request has been marked as stale.'
# The message to post on the issue when closing it. If none provided, will not comment when closing an issue.
close-pr-message: 'Closing this pr due to no activity.'
# The number of days old an issue can be before marking it stale. Set to -1 to never mark issues or pull requests as stale automatically.
days-before-stale: 7
# The number of days to wait to close an issue or pull request after it being marked stale. Set to -1 to never close stale issues.
days-before-close: 7
# The label to apply when a pull request is stale.
stale-pr-label: 'Stale'
# The label to apply when a pull request is closed.
close-pr-label: 'Stale-n-closed'