ci: add optimized stale and lock workflows

This commit is contained in:
peaklabs-dev 2025-04-30 16:16:50 +02:00
parent 25ffcf84f1
commit c7f18fd489
No known key found for this signature in database
2 changed files with 47 additions and 0 deletions

17
.github/workflows/lock-threads.yaml vendored Normal file
View file

@ -0,0 +1,17 @@
name: Lock inactive threads
on:
schedule:
- cron: '0 1 * * *'
jobs:
lock-threads:
runs-on: ubuntu-latest
steps:
- name: Lock threads after 30 days of inactivity
uses: dessant/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-inactive-days: 30
pr-inactive-days: 30
discussion-inactive-days: 30

30
.github/workflows/stale-threads.yaml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Manage stale threads
on:
schedule:
- cron: '0 2 * * *'
jobs:
stale-threads:
runs-on: ubuntu-latest
steps:
- name: Manage stale threads (Issues & PRs)
uses: actions/stale@v9
with:
stale-issue-message: |
This issue has been marked as stale due to inactivity. It will be automatically closed in 7 days if no update is received.
Please provide the requested information to keep the issue active.
stale-pr-message: |
This pull request has been marked as stale due to inactivity. It will be automatically closed in 7 days if no update is received.
To keep this PR active:
- Update your changes based on the requested feedback
- Leave a comment with your progress or questions
days-before-stale: 14
stale-issue-label: '⏱︎ Stale'
stale-pr-label: '⏱︎ Stale'
only-labels: '💤 Waiting for feedback, 💤 Waiting for changes'
remove-stale-when-updated: true
operations-per-run: 100
labels-to-remove-when-unstale: '⏱︎ Stale, 💤 Waiting for feedback, 💤 Waiting for changes'