Skip to content

Commit

Permalink
Add action to label inactive PRs as stale (#37915)
Browse files Browse the repository at this point in the history
* Add action to label inactive PRs as stale

Signed-off-by: GitHub <[email protected]>

* Correct label

Signed-off-by: GitHub <[email protected]>

* Add link to action's page

Signed-off-by: GitHub <[email protected]>

* Apply feedback

Signed-off-by: GitHub <[email protected]>

* Improve wording.

Co-authored-by: Tully Foote <[email protected]>

---------

Signed-off-by: GitHub <[email protected]>
Co-authored-by: Tully Foote <[email protected]>
  • Loading branch information
audrow and tfoote committed Jul 13, 2023
1 parent b0e930f commit e46500d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/stale_labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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:
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'

0 comments on commit e46500d

Please sign in to comment.