Skip to content

Commit

Permalink
add action to mark stale issue and autoclose them
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Veiga committed Feb 3, 2021
1 parent fd2f680 commit f20647e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Close stale issues and PRs'
on:
schedule:
# Check once a day
- cron: '0 0 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
# A full list of config options can be found at: https://github.com/actions/stale/blob/main/action.yml
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-close: 7
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
stale-pr-message: 'This pr is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
close-pr-message: 'This pr was closed because it has been stalled for 7 days with no activity.'
only-labels: 'Need+More+Info,Need+Demo'

0 comments on commit f20647e

Please sign in to comment.