Skip to content

ci: add workflow to close PRs inactive for 2+ weeks - #253

Merged
sachiniyer merged 1 commit into
mainfrom
siyer/delete-stale-pr
Apr 21, 2026
Merged

sachiniyer merged 1 commit into
mainfrom
siyer/delete-stale-pr

Conversation

@sachiniyer

@sachiniyer sachiniyer commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/stale.yml that uses actions/stale@v9 to close PRs inactive for 14 days (7-day stale warning + 7-day close window).
  • Mirrors the usedetail/detail stale workflow pattern, scaled from 30 → 14 days.
  • PRs labeled do-not-close are exempt. Runs daily at 00:00 UTC; also dispatchable manually.

Test plan

  • Trigger the workflow manually via workflow_dispatch and confirm it runs without errors
  • Verify an open PR with no do-not-close label and no activity for 7+ days gets the stale label and warning comment
  • Verify a PR labeled do-not-close is skipped
  • Confirm PRs with activity inside the 14-day window are left alone

🤖 Generated with Claude Code


Open in Devin Review

Closes PRs with no activity for 14 days (7-day stale warning + 7-day
close window). Mirrors the usedetail/detail stale workflow, scaled down
from 30 to 14 days. PRs labeled do-not-close are exempt.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sachiniyer
sachiniyer temporarily deployed to integration-tests April 21, 2026 08:27 — with GitHub Actions Inactive

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@sachiniyer
sachiniyer merged commit 207e922 into main Apr 21, 2026
13 checks passed
@sachiniyer
sachiniyer deleted the siyer/delete-stale-pr branch April 21, 2026 08:36

This branch was previously deployed

1 inactive deployment
integration-tests — 5029e88e Deployed Apr 21, 2026 by sachiniyer via Integration #202
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.

1 participant