Skip to content

feat(scripts): add GitHub stale work scanner for daily cron digest#4

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/github-work-staleness-6340
Draft

feat(scripts): add GitHub stale work scanner for daily cron digest#4
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/github-work-staleness-6340

Conversation

@cursor

@cursor cursor Bot commented Jul 2, 2026

Copy link
Copy Markdown

Adds scripts/github-stale-work.py — a gh CLI scanner for stale PRs and issues across four categories (unreviewed PRs, pending review requests, inactive assigned issues, old drafts). Results are bucketed by age: 🔴 3+ weeks, 🟡 1–3 weeks, 🟢 under 1 week.

Usage:

./scripts/github-stale-work.sh              # authenticated gh user
GITHUB_USER=you ./scripts/github-stale-work.sh   # specific account
GITHUB_ORG=kartenmacherei ./scripts/github-stale-work.sh  # org-scoped

Set GITHUB_USER in the Cursor automation env to get a personal daily digest.

Open in Web View Automation 

Adds a daily-digest script that finds:
- Open PRs with no external review (7+ days)
- Review requests not yet addressed (3+ days)
- Assigned issues with no activity (14+ days)
- Draft PRs stuck in draft (2+ weeks)

Supports GITHUB_USER and GITHUB_ORG env vars for automation.

Co-authored-by: Sebastian Jespersen <email@sebastian-jespersen.com>
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