forked from cncf/glossary
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.94 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
43
---
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2023
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
name: Stale label
# yamllint disable-line rule:truthy
on:
schedule:
- cron: '0 0 * * *' # Runs daily at 12am UTC
push:
branches:
- dev-es
permissions:
issues: write
pull-requests: write
jobs:
stale:
name: Run stale task to label inactive issues
timeout-minutes: 1 # Default: 360
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue/PR is stale because it has been inactive for 60 days. This issue/PR will be closed automatically with additional 20 days of inactivity. If an update/comment occur on stale issue/PR, the stale label will be removed and the timer will restart. Closed issue/PR can be reopened if necessary.'
stale-pr-message: 'This issue/PR is stale because it has been inactive for 60 days. This issue/PR will be closed automatically with additional 20 days of inactivity. If an update/comment occur on stale issue/PR, the stale label will be removed and the timer will restart. Closed issue/PR can be reopened if necessary.'
exempt-issue-labels: 'maintainers, lang/es'
exempt-pr-labels: 'maintainers'
stale-pr-label: 'stale'
stale-issue-label: 'stale'
days-before-stale: 60
days-before-close: 20
only-labels: 'lang/es'
close-issue-label: 'close/stale'
close-pr-label: 'close/stale' # Add the label for mainteiners track the close pr labels.