-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (33 loc) · 1.84 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
name: ♻ Close stale issues and PRs
on:
workflow_call:
inputs:
days-before-stale:
description: The idle number of days before marking the issues or the pull requests as stale (by adding a label).
type: number
default: 60
days-before-close:
description: The idle number of days before closing the stale issues or the stale pull requests (due to the stale label).
type: number
default: 7
label:
description: Label to apply on issues and pull requests.
type: string
default: stale
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
days-before-stale: ${{ inputs.days-before-stale }}
days-before-close: ${{ inputs.days-before-close }}
stale-issue-label: ${{ inputs.label }}
stale-issue-message: There has been no activity on this issue for ${{ inputs.days-before-stale }} days. ${{ inputs.label }} label will be added. If no additional activity occurs, the issue will be closed in ${{ inputs.days-before-close }} days.
close-issue-message: There has been no activity on this stale issue for ${{ inputs.days-before-close }} days. This issue will now be closed. If new activity occurs, the issue will reopen.
stale-pr-label: ${{ inputs.label }}
stale-pr-message: There has been no activity on this pull request for ${{ inputs.days-before-stale }} days. ${{ inputs.label }} label will be added. If no additional activity occurs, the pull request will be closed in ${{ inputs.days-before-close }} days.
close-pr-message: There has been no activity on this stale pull request for ${{ inputs.days-before-close }} days. This pull request will now be closed. If new activity occurs, the pull request will reopen.