How gechr/prl works
prl is a GitHub pull-request search, browsing, and action CLI. Its principal workflow turns flags and free-text terms into GitHub search criteria, retrieves and filters pull requests, then presents results or performs requested actions. The README also documents a full-screen TUI, continuous refresh, grouping, cloning, browser and clipboard actions, and plugin-backed Slack delivery. Source excerpts show search execution, REST actions, and TUI refresh behavior; other links below rely on documented capabilities, so evidence is limited to those excerpts and README statements.
Main entry points: main.go Workflow orchestration · tui.go Interactive browser · cli.go Flags and CLI · github.go GitHub clients
Components 25
Query and configuration
- Flags and CLI
cli.go - Configuration
config.go - Query parsing
query.go
GitHub data and actions
- Search planning
search.go - GitHub clients
github.go - Pull request data
types.go - PR actions
api.go - Review actions
review.go - Result cache
list_cache.go
Result experiences
- Workflow orchestration
main.go - Output rendering
output.go - Result grouping
group.go - Table display
table.go - Interactive browser
tui.go - TUI actions
tui_actions.go - TUI filters
tui_filters.go - Browser opening
browser.go - Repository cloning
clone.go
Integrations
- Plugin integration
plugin.go
AI review
- AI review launch
review.go - Review prompts
review_prompt.go
Other components
- CLI user
- GitHub
- gh CLI
- Slack
Connections 24
- CLI user → Flags and CLI: sets flags
- Flags and CLI → Configuration: loads defaults
- Flags and CLI → Query parsing: supplies terms
- Query parsing → Search planning: builds criteria
search.go - Search planning → GitHub clients: executes search
search.go - GitHub clients → GitHub: queries pull requests
- GitHub clients → Pull request data: returns results
- Workflow orchestration → Search planning: fetches matches
- Workflow orchestration → Output rendering: renders results
- Workflow orchestration → Result grouping: groups results
main.go - Output rendering → Table display: renders table
- Workflow orchestration → Interactive browser: launches browser
- Interactive browser → TUI filters: filters results
- Interactive browser → TUI actions: dispatches actions
tui.go - Interactive browser → Result cache: saves results
tui.go - Workflow orchestration → PR actions: runs requested actions
main.go - PR actions → GitHub: updates pull requests
api.go - Workflow orchestration → Repository cloning: clones repositories
- Workflow orchestration → Browser opening: opens pages
- Workflow orchestration → Plugin integration: uses plugin
- Plugin integration → Slack: sends results
- Workflow orchestration → AI review launch: launches review
- AI review launch → Review prompts: renders prompt
review_prompt.go - AI review launch → gh CLI: starts review session
review.go