Add stale workflow (#3389)

This commit is contained in:
Alexandru Ionut Tripon 2025-02-05 23:04:38 +02:00 committed by GitHub
commit 364b5be856
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

@ -0,0 +1,29 @@
name: Stale
on:
schedule:
# run weekly on sunday
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
label:
name: Label issues and PRs
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
days-before-stale: 30
days-before-close: -1 # Don't close anything
stale-issue-message: "This issue has been inactive for a while. Please add a comment or provide an update if it's still relevant."
stale-pr-message: "This PR has had no recent activity. Please update it if it's still relevant."
exempt-issue-labels: rfc,nostale
exempt-all-milestones: true
exempt-all-assignees: true