gh-velocity pr#

Composite detail view for a single pull request

Synopsis#

Show everything about a single PR: facts (author, timestamps), metrics (cycle time, time to first review, review rounds), and closed issues.

This is the recommended command for per-PR GitHub Actions automation. Use --post to add a rich comment to the PR when it merges.

gh-velocity pr <number> [flags]

Examples#

  # View PR detail
  gh velocity pr 125

  # Post as a comment on the PR
  gh velocity pr 125 --post

  # JSON output
  gh velocity pr 125 -r json

Options#

  -h, --help   help for pr

Options inherited from parent commands#

      --config string     Path to config file (default: .gh-velocity.yml)
      --debug             Print diagnostic info to stderr
      --new-post          Force a new post (skip idempotent update; implies --post)
      --no-cache          Disable disk cache (in-memory deduplication still active)
      --post              Post output to GitHub (dry-run by default; set GH_VELOCITY_POST_LIVE=true for live)
  -R, --repo string       Repository in owner/name format
  -r, --results strings   Output format(s): json, pretty, markdown, html (comma-separated) (default [pretty])
      --scope string      Additional GitHub search qualifier(s) ANDed with config scope
      --title string      Override discussion title (with --post)
      --write-to string   Write result files to this directory (silences stdout)

SEE ALSO#