Add stale bot

This commit is contained in:
Marcus Young
2024-06-18 05:57:20 -05:00
parent 945d4e5a5f
commit ef49009498
2 changed files with 22 additions and 4 deletions
+22
View File
@@ -0,0 +1,22 @@
name: 'Close stale issues and PR'
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.'
days-before-stale: 30
days-before-close: 5
days-before-pr-close: -1
debug-only: true
-4
View File
@@ -8,7 +8,3 @@ repos:
- id: check-case-conflict
- id: check-merge-conflict
- id: detect-private-key
- repo: https://github.com/stratasan/hadolint-pre-commit
rev: cdefcb096e520a6daa9552b1d4636f5f1e1729cd
hooks:
- id: hadolint