feat(ci): add stale issues automation workflow (#1055)
Some checks failed
Functional & Unit Tests / Functional & Unit Tests (push) Failing after 9m42s
Functional & Unit Tests / Generate Coverage Badge (push) Has been skipped
Close Stale Issues / Mark and Close Stale Issues (push) Successful in 9s

Signed-off-by: AR21SM <mahajanashishar21sm@gmail.com>
This commit is contained in:
Ashish Mahajan
2026-01-17 20:43:49 +05:30
committed by GitHub
parent 0cc82dc65d
commit 9c261e2599

40
.github/workflows/stale.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: Close Stale Issues
on:
schedule:
# Run daily at 1:00 AM UTC
- cron: '0 1 * * *'
workflow_dispatch:
permissions:
issues: write
jobs:
stale:
name: Mark and Close Stale Issues
runs-on: ubuntu-latest
steps:
- name: Mark and close stale issues
uses: actions/stale@v9
with:
days-before-issue-stale: 60
days-before-issue-close: 14
stale-issue-label: 'stale'
stale-issue-message: |
This issue has been automatically marked as stale because it has not had any activity in the last 60 days.
It will be closed in 14 days if no further activity occurs.
If this issue is still relevant, please leave a comment or remove the stale label.
Thank you for your contributions to krkn!
close-issue-message: |
This issue has been automatically closed due to inactivity.
If you believe this issue is still relevant, please feel free to reopen it or create a new issue with updated information.
Thank you for your understanding!
close-issue-reason: 'not_planned'
days-before-pr-stale: -1
days-before-pr-close: -1
# issues with these labels won't be marked stale
exempt-issue-labels: 'bug,enhancement,good first issue'
remove-stale-when-updated: true