ci: track meaningful pull request inactivity

Use human activity and observed head changes because GitHub can update PR timestamps without contributor activity.

Audit every open PR before applying changes and start existing PRs from a safe baseline.
This commit is contained in:
neon
2026-09-26 15:48:02 +00:00
parent 04ba2ffbcf
commit a0477f0d0b
8 changed files with 616 additions and 14 deletions
+6 -13
View File
@@ -1,4 +1,4 @@
name: Stale Issues and PRs
name: Stale Issues
on:
schedule:
@@ -7,11 +7,11 @@ on:
permissions:
issues: write
pull-requests: write
pull-requests: read
jobs:
stale:
name: Mark and Close Stale
name: Mark and Close Stale Issues
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
@@ -19,22 +19,15 @@ jobs:
with:
days-before-issue-stale: 60
days-before-issue-close: 14
days-before-pr-stale: 30
days-before-pr-close: 14
days-before-pr-stale: -1
days-before-pr-close: -1
stale-issue-label: stale
stale-pr-label: stale
remove-pr-stale-when-updated: false
exempt-issue-labels: "pinned,security"
exempt-pr-labels: pinned
stale-issue-message: >
This issue has been inactive for 60 days. It will be closed in 14 days
unless there is new activity. If this is still relevant, please leave a
comment or update the issue.
stale-pr-message: >
This PR has been inactive for 30 days. It will be closed in 14 days
unless there is new activity. If you are still working on this, please
leave a comment or push an update.
close-issue-message: >
Closing due to inactivity. Feel free to reopen if this is still relevant.
close-pr-message: >
Closing due to inactivity. Feel free to reopen if you want to continue
this work.