|
1 |
| -# Copyright (c) 2021 VMware, Inc. All Rights Reserved. |
2 |
| -# |
3 |
| -# Licensed under the Apache License, Version 2.0 (the "License"); |
4 |
| -# you may not use this file except in compliance with the License. |
5 |
| -# You may obtain a copy of the License at |
6 |
| -# |
7 |
| -# http://www.apache.org/licenses/LICENSE-2.0 |
8 |
| -# |
9 |
| -# Unless required by applicable law or agreed to in writing, software |
10 |
| -# distributed under the License is distributed on an "AS IS" BASIS, |
11 |
| -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 |
| -# See the License for the specific language governing permissions and |
13 |
| -# limitations under the License. |
14 |
| - |
15 | 1 | name: Close Stale
|
16 | 2 |
|
| 3 | +permissions: |
| 4 | + contents: read |
| 5 | + issues: write |
| 6 | + pull-requests: write |
| 7 | + |
17 | 8 | on:
|
18 | 9 | schedule:
|
19 |
| - - cron: "0 1 * * *" # daily |
| 10 | + - cron: 0 1 * * * |
20 | 11 |
|
21 | 12 | jobs:
|
22 | 13 | stale:
|
23 | 14 | runs-on: ubuntu-latest
|
24 | 15 |
|
25 | 16 | steps:
|
26 |
| - - uses: "actions/stale@v9" |
| 17 | + - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 |
27 | 18 | with:
|
28 |
| - repo-token: "${{ secrets.GITHUB_TOKEN }}" # No need to setup |
| 19 | + repo-token: "${{ secrets.GITHUB_TOKEN }}" |
29 | 20 |
|
30 | 21 | stale-issue-message: |-
|
31 | 22 | This issue is stale because it has been open for 90 days with no
|
32 | 23 | activity. It will automatically close after 30 more days of
|
33 | 24 | inactivity. Mark as fresh by adding the comment `/remove-lifecycle stale`.
|
34 |
| - stale-issue-label: "lifecycle/stale" |
35 |
| - exempt-issue-labels: "lifecycle/frozen" |
| 25 | + stale-issue-label: lifecycle/stale |
| 26 | + exempt-issue-labels: lifecycle/frozen |
36 | 27 |
|
37 | 28 | stale-pr-message: |-
|
38 |
| - This Pull Request is stale because it has been open for 90 days with |
| 29 | + This pull request is stale because it has been open for 90 days with |
39 | 30 | no activity. It will automatically close after 30 more days of
|
40 | 31 | inactivity. Mark as fresh by adding the comment `/remove-lifecycle stale`.
|
41 |
| - stale-pr-label: "lifecycle/stale" |
42 |
| - exempt-pr-labels: "lifecycle/frozen" |
| 32 | + stale-pr-label: lifecycle/stale |
| 33 | + exempt-pr-labels: lifecycle/frozen |
43 | 34 |
|
44 | 35 | days-before-stale: 90
|
45 | 36 | days-before-close: 30
|
0 commit comments