-
Notifications
You must be signed in to change notification settings - Fork 11
34 lines (32 loc) · 1.42 KB
/
reusable-stale-issue.yml
File metadata and controls
34 lines (32 loc) · 1.42 KB
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
name: Close Stale Issues
on:
workflow_call:
inputs:
runner:
required: false
type: string
default: '"ubuntu-latest"'
jobs:
stale:
runs-on: ${{ fromJSON(vars['UCI_STALE_ISSUE_RUNNER'] || inputs['runner']) }}
permissions:
issues: write
pull-requests: write
steps:
- uses: galargh/stale@main # TODO: replace actions/stale once https://github.com/actions/stale/issues/1136 and https://github.com/actions/stale/issues/1133 are resolved
with:
repo-token: ${{ github.token }}
stale-issue-message: |
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.
close-issue-message: |
This issue was closed because it is missing author input.
stale-issue-label: 'kind/stale'
only-issue-labels: 'need/author-input'
exempt-issue-labels: 'need/triage,need/community-input,need/maintainer-input,need/maintainers-input,need/analysis,status/blocked,status/in-progress,status/ready,status/deferred,status/inactive'
days-before-issue-stale: 6
days-before-issue-close: 7
enable-statistics: true
only-pr-labels: 'This workflow should process only issues - this ensures we finish processing PRs early'
days-before-pr-stale: -1
days-before-pr-close: -1
operations-per-run: 100