|
| 1 | +--- |
1 | 2 | name: 'Label inactive PRs as stale'
|
2 | 3 |
|
3 |
| -on: |
| 4 | +# this is fine since gha runs with yaml 1.2 |
| 5 | +on: # yamllint disable-line rule:truthy |
4 | 6 | schedule:
|
5 |
| - - cron: '0 11 * * *' # runs at 11am UTC every day => early morning in US |
| 7 | + - cron: '0 11 * * *' # runs at 11am UTC every day => early morning in US |
6 | 8 |
|
7 | 9 | jobs:
|
8 | 10 | stale:
|
9 | 11 | runs-on: ubuntu-latest
|
10 | 12 | steps:
|
11 |
| - - uses: actions/stale@v8 # https://github.com/marketplace/actions/close-stale-issues |
12 |
| - with: |
13 |
| - stale-pr-label: 'stale' |
14 |
| - stale-pr-message: "This PR hasn't been activity in 14 days. If you are still are interested in getting it merged please provide an update. Otherwise it will likely be closed by a rosdistro maintainer following our [contributing policy](https://github.com/ros/rosdistro/blob/master/CONTRIBUTING.md). It's been labeled \"stale\" for visibility to the maintainers. If this label isn't appropriate, you can ask a maintainer to remove the label and add the 'persistent' label." |
15 |
| - days-before-pr-stale: 14 |
16 |
| - days-before-pr-close: -1 # don't close PRs automatically |
17 |
| - days-before-issue-stale: -1 # don't label issues as stale |
18 |
| - days-before-issue-close: -1 # don't close issues automatically |
19 |
| - exempt-pr-labels: 'persistent' |
| 13 | + - uses: actions/stale@v8 # https://github.com/marketplace/actions/close-stale-issues |
| 14 | + with: |
| 15 | + stale-pr-label: 'stale' |
| 16 | + stale-pr-message: > |
| 17 | + This PR hasn't been activity in 14 days. |
| 18 | + If you are still are interested in getting it merged |
| 19 | + please provide an update. |
| 20 | + Otherwise it will likely be closed by a rosdistro maintainer |
| 21 | + following our [contributing policy](https://github.com/ros/rosdistro/blob/master/CONTRIBUTING.md). |
| 22 | + It's been labeled "stale" for visibility to the maintainers. |
| 23 | + If this label isn't appropriate, |
| 24 | + you can ask a maintainer to remove the label and add the 'persistent' label. |
| 25 | + days-before-pr-stale: 14 |
| 26 | + days-before-pr-close: -1 # don't close PRs automatically |
| 27 | + days-before-issue-stale: -1 # don't label issues as stale |
| 28 | + days-before-issue-close: -1 # don't close issues automatically |
| 29 | + exempt-pr-labels: 'persistent' |
0 commit comments