ci: label stale issues and PRs without auto-closing (#26318)

Signed-off-by: Kevin Joe Harris <kevinjoeharris1@gmail.com>
This commit is contained in:
S Kevin Joe Harris
2026-02-10 21:26:11 +05:30
committed by GitHub
parent 8f9ee6d1da
commit fdbe19adaf
2 changed files with 32 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
| release.yaml | Build images, cli-binaries, provenances, and post actions |
| scorecard.yaml | Generate scorecard for supply-chain security |
| update-snyk.yaml | Scheduled snyk reports |
| stale.yaml | Labels stale issues and PRs |
# Reusable workflows

31
.github/workflows/stale.yaml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: "Label stale issues and PRs"
on:
schedule:
- cron: "0 0 * * *" #Runs midnight 12AM UTC
#Added Recommended permissions
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-24.04
steps:
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: >
This issue has been marked as stale because it has had no activity for 90 days. Please comment if this is still relevant.
stale-pr-message: >
This pull request has been marked as stale because it has had no activity for 90 days. Please comment if this is still relevant.
days-before-stale: 90
days-before-close: -1 # Auto-close diabled
exempt-issue-labels: >
bug, security, breaking/high, breaking/medium, breaking/low
operations-per-run: 200