Skip to content

Commit

Permalink
Merge pull request #34 from near/stale
Browse files Browse the repository at this point in the history
chore: adds a workflow to help keep the issues and pr backlog relevant
  • Loading branch information
charleslavon authored Jun 5, 2024
2 parents 9271ab2 + d438605 commit e90e1b8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Close Stale Issues & Pull Requests

on:
schedule:
- cron: '0 0 * * 5' # Run at midnight on Fridays

permissions:
issues: write
pull-requests: write

jobs:
close_stale_prs:
runs-on: ubuntu-latest
steps:
- name: Close stale pull requests
uses: actions/[email protected]

with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-issue-stale: 180
days-before-pr-stale: 45
days-before-close: 0
close-issue-message: 'This issue has been automatically closed because it has been
inactive for more than 180 days. Please reopen and prioritize this for development if it is
essential.'
close-pr-message: 'This pull request has been automatically closed because it has been
inactive for more than 45 days. Please reopen and see this PR through its review if it is
essential.'

0 comments on commit e90e1b8

Please sign in to comment.