Skip to content

Commit

Permalink
chore(github-actions): add action to close stale issues and PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Feb 22, 2024
1 parent d7dce16 commit d90a456
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: 🐛 Bug report
about: Create a report to help us improve Postal and fix issues.
title: ''
labels: bug
labels: ''
assignees: ''

---
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/close.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
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 5 days.'
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'

stale-issue-label: stale
stale-pr-label: stale

days-before-issue-stale: 30
days-before-pr-stale: 45
days-before-issue-close: 5
days-before-pr-close: 10

exempt-all-assignees: true
exempt-all-milestones: true
exempt-issue-labels: bug,enhancement,bug,install,feature

0 comments on commit d90a456

Please sign in to comment.