Skip to content

Commit

Permalink
feat: auto-close stale issues and pull requests (#907)
Browse files Browse the repository at this point in the history
Introduce a default behavior to all project types which automatically marks issues and pull requests with a `Stale` label after a period of inactivity and then closes them.

The defaults stale/close periods in days are:
- Issues: 60/7
- Pull requests: 14/2

This feature is only available on projects hosted on GitHub and uses the [actions/stale](https://github.com/actions/stale) action to automatically mark pull requests and issues as "stale" and close them if they have no activity.

To disable, set `stale: false` in the project definition.

Co-authored-by: Automation <github-actions@github.com>
Co-authored-by: Eli Polonsky <epolon@amazon.com>
  • Loading branch information
3 people committed Jun 30, 2021
1 parent e25f9f8 commit 0f2aba6
Show file tree
Hide file tree
Showing 23 changed files with 1,926 additions and 73 deletions.
1 change: 1 addition & 0 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions .github/workflows/stale.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

140 changes: 140 additions & 0 deletions API.md

Large diffs are not rendered by default.

90 changes: 80 additions & 10 deletions src/__tests__/__snapshots__/cli.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

140 changes: 140 additions & 0 deletions src/__tests__/__snapshots__/integ.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0f2aba6

Please sign in to comment.