Skip to content

gilangjavier/prfa

Repository files navigation

PR Follow-up Assistant (prfa)

CI npm

A small cross-platform Node.js CLI to scan your open GitHub PRs, highlight stale ones, and generate follow-up message templates.

Features

  • Scan open PRs authored by a GitHub user
  • Detect stale PRs by inactivity threshold (--days)
  • Output markdown summary for easy posting into issues/chats/notes
  • Generate follow-up templates for stale PRs

Requirements

  • Node.js 18+
  • GitHub CLI (gh) installed and authenticated (gh auth status)

Install

Global install:

npm i -g @gilangjavier/prfa

Or run without installing:

npx @gilangjavier/prfa scan --user gilangjavier --days 7

Usage

prfa scan --user gilangjavier --days 7

(If you used npx, replace prfa with npx @gilangjavier/prfa.)

Or via npm script (for contributors):

npm run scan -- --user gilangjavier --days 7

Example Output

# PR Follow-up Summary for @gilangjavier

Generated: 2026-03-17T03:43:00.000Z
Stale threshold: 7 days

## Open PRs (2)
- [owner/repo#12](https://github.com/owner/repo/pull/12) — feat: improve parser _(inactive 2d)_

## Stale PRs (1)
- [owner/repo#11](https://github.com/owner/repo/pull/11) — fix: flaky tests _(inactive 10d)_

## Suggested follow-up templates
### owner/repo#11
Hi maintainers, friendly follow-up on this PR 👋

- Is there anything I should adjust to move this forward?
- Happy to update tests/docs if needed.

Thanks for your time!

Contributing

See CONTRIBUTING.md for both:

  • For AI agents
  • For humans

Development

npm test

License

MIT

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors