Skip to content

Useful workflow commands - pr ready, pr stack, pr dashboard #5

@jordanpartridge

Description

@jordanpartridge

Overview

High-value workflow commands that go beyond basic gh pr.

Commands

pr ready

Mark PR as ready and request reviews in one command.

pr ready 123                      # Mark ready for review
pr ready 123 --reviewer @alice    # Ready + request review
pr ready 123 --team engineering   # Ready + team review

pr stack

Manage stacked PRs (dependent PRs).

pr stack                          # Show current stack
pr stack --create                 # Create next PR in stack
pr stack --rebase                 # Rebase entire stack
pr stack --merge                  # Merge stack in order

pr dashboard

Quick overview of PR status.

pr dashboard                      # All my PRs + review requests
pr dashboard --team              # Team PRs
pr dashboard --json              # For scripting

Output:

┌─────────────────────────────────────────────────┐
│ My PRs (3 open)                                 │
├─────────────────────────────────────────────────┤
│ #123 feat: add auth    ✅ Checks  🔄 Review     │
│ #124 fix: login bug    ❌ Checks  -             │
│ #125 docs: readme      ✅ Checks  ✅ Approved   │
├─────────────────────────────────────────────────┤
│ Review Requested (2)                            │
├─────────────────────────────────────────────────┤
│ #200 refactor: api     @alice   2h ago          │
│ #201 feat: webhooks    @bob     1d ago          │
└─────────────────────────────────────────────────┘

pr link

Link PR to issues.

pr link 123 --issue 456          # Link to issue
pr link 123 --closes 456         # Auto-close issue on merge
pr link 123 --relates 456,457    # Related issues

Implementation

  • Use gh api for advanced queries
  • Cache for speed
  • Rich terminal output with tables

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions