Skip to content

Commit

Permalink
adding an action to tag and auto close issues and PRs if stale
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain authored and libotony committed Jan 8, 2024
1 parent 55e5dce commit a589f8b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/close-stale-issues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Close stale issues and PRs'

on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest

permissions:
contents: write
issues: write
pull-requests: write

steps:
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue has been marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.'
stale-pr-message: 'This pull request has been marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.'
days-before-issue-stale: 90
days-before-pr-stale: 60
days-before-close: 7
stale-issue-label: 'stale'

0 comments on commit a589f8b

Please sign in to comment.