Skip to content

Add action to label inactive PRs as stale (#37915) #40

Add action to label inactive PRs as stale (#37915)

Add action to label inactive PRs as stale (#37915) #40

name: 'Label inactive PRs as stale'
on:
schedule:
- cron: '0 11 * * *' # runs at 11am UTC every day => early morning in US
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8 # https://github.com/marketplace/actions/close-stale-issues
with:

Check failure on line 12 in .github/workflows/stale_labeler.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/stale_labeler.yaml

Invalid workflow file

You have an error in your yaml syntax on line 12
stale-pr-label: 'stale'
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.
days-before-pr-stale: 14
days-before-pr-close: -1 # don't close PRs automatically
days-before-issue-stale: -1 # don't label issues as stale
days-before-issue-close: -1 # don't close issues automatically
exempt-pr-labels: 'persistent'