Skip to content

Commit

Permalink
Add Stale Workflow (#58)
Browse files Browse the repository at this point in the history
* Create stale.yml

* Update stale.yml

* Update CHANGELOG.md
  • Loading branch information
jashparekh authored Nov 29, 2021
1 parent 2599f6e commit f7ca723
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Close stale PRs and Issues

on:
schedule:
- cron: "0 0 * * 0"

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 60
stale-issue-label: 'stale'
stale-pr-label: 'stale'
stale-issue-message: 'Automatically marking issue as stale due to lack of activity'
stale-pr-message: 'Automatically marking pull request as stale due to lack of activity'
days-before-close: 7
close-issue-message: 'Automatically closing this issue as stale'
close-pr-message: 'Automatically closing this pull request as stale'
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Replace Flow with TypeScript for type checking
- Bundle TS types with library
- Add workflow to auto close PRs with no response from the author after 30 days
- Add workflow to close stale PRs and Issues

## 2.0.0 (November 8, 2021)

Expand Down

0 comments on commit f7ca723

Please sign in to comment.