Skip to content

Commit

Permalink
Stale issue/pr action (#4625)
Browse files Browse the repository at this point in the history
Adds a Github action that checks for stale issues and PRs using https://github.com/actions/stale, which is Github's officially supported action for stale checks. To run this in a dry run mode, I've turned on Github logging for the repo, and set `debug-only: true` for the action. The docs on https://github.com/actions/stale#debugging suggest this means the action will not be run, and only be logged. This should allow us to watch how this would effect our repo.
  • Loading branch information
snide authored Mar 8, 2021
1 parent cdff95e commit 0f7f849
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/stale_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '* */8 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
stale-issue-message: 'πŸ‘‹ Hey there. This issue hasn''t had any activity for 180 days. We''ll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.'
stale-pr-message: 'πŸ‘‹ Hey there. This PR hasn''t had any activity for 90 days. We''ll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.'
close-issue-message: '❌ We''re automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.'
close-pr-message: '❌ We''re automatically closing this PR due to lack of activity. Please comment if you feel this was done in error.'
days-before-pr-stale: 90
days-before-issue-stale: 180
days-before-close: 7
stale-issue-label: 'stale-issue'
close-issue-label: 'stale-issue-closed'
exempt-issue-labels: 'bug,skip-stale-check'
stale-pr-label: 'stale-pr'
close-pr-label: 'stale-pr-closed'
exempt-pr-labels: 'skip-stale-check'
operations-per-run: 1000
remove-stale-when-updated: true
debug-only: true
enable-statistics: true
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ EUI has strict quality and testing standards due to its large downstream footpri

If you have a preference, let us know when you make your PR, but never feel guilty about just handing it off. We're here to help.

### We utilize Github actions to keep the repo tidy

We use Github actions for some automation tasks to keep this repo tidy. Specifically we close out issues and PRs using [the actions/stale workflow](https://github.com/actions/stale) when we notice a lack of activity over a long period of time. This is done as much to remind us of older issues that need attention as it is to keep our total issue count managable. These action counters can easily be soft reset by commenting on the issues/PRs directly.

## Helpful documents

* [Component design](wiki/component-design.md)
Expand Down

0 comments on commit 0f7f849

Please sign in to comment.