Skip to content

ci: close stale pull requests automatically - #658

Merged
dev-jodee merged 2 commits into
mainfrom
ci/stale-pr-workflow
Jul 30, 2026
Merged

ci: close stale pull requests automatically#658
dev-jodee merged 2 commits into
mainfrom
ci/stale-pr-workflow

Conversation

@dev-jodee

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a daily actions/stale@v9 workflow scoped to pull requests only: 45 days of inactivity applies a stale label and a warning comment; 14 more days closes the PR
  • Issues are explicitly excluded (days-before-issue-stale: -1) — example requests are often legitimately long-lived
  • Draft PRs and anything labeled keep-open are exempt; any push or comment resets the clock
  • The stale message points contributors at AGENTS.md/CONTRIBUTING so "what does this PR need" has an answer

Test Plan

  • workflow_dispatch trigger included — run it manually once merged and check the dry pass against the current PR list (the 10 recently-triaged PRs all have fresh activity, so nothing should be labeled)

45 days of inactivity marks a PR stale, 14 more closes it. PRs only —
issues stay untouched. Drafts and the keep-open label are exempt; any
push or comment resets the clock.
Comment thread .github/workflows/stale.yml Outdated
@greptile-apps

greptile-apps Bot commented Jul 30, 2026

Copy link
Copy Markdown

Greptile Summary

Adds a scheduled and manually dispatchable stale-PR workflow.

  • Marks pull requests stale after 45 inactive days and closes them after 14 additional days.
  • Exempts issues, draft pull requests, and pull requests labeled keep-open.
  • Clarifies that contributors should ask a maintainer to apply the opt-out label.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
.github/workflows/stale.yml Adds the stale pull-request automation and fully addresses the prior feedback by directing contributors to ask a maintainer for the opt-out label.

Reviews (2): Last reviewed commit: "Update .github/workflows/stale.yml" | Re-trigger Greptile

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@dev-jodee
dev-jodee merged commit 14c548c into main Jul 30, 2026
19 checks passed
@dev-jodee
dev-jodee deleted the ci/stale-pr-workflow branch July 30, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants