Skip to content

gtl pr

Fetch pull request details from GitHub and render to markdown file or terminal

Aliases

prw, prme

Usage

bash
gtl pr [url-or-number] [flags]
gtl pr [command]

Subcommands

CommandDescription
gtl pr conflictsCheck your open PRs for merge conflicts
gtl pr copyCopy pull request URL to clipboard
gtl pr filesList changed files in a PR
gtl pr listList open PRs and update status
gtl pr previewOpen PR/MR preview URL for current branch
gtl pr pulseSummarize PR activity and attention items

Examples

bash
gtl pr
gtl pr 123
gtl pr https://github.com/owner/repo/pull/123 --show
gtl pr --sync-all
gtl pr preview --title "Draft"

Full Help

text
Fetch pull request details from GitHub and render to markdown file or terminal

Usage:
  gtl pr [url-or-number] [flags]
  gtl pr [command]

Aliases:
  pr, prw, prme

Examples:
gtl pr
gtl pr 123
gtl pr https://github.com/owner/repo/pull/123 --show
gtl pr --sync-all
gtl pr preview --title "Draft"

Available Commands:
  conflicts   Check your open PRs for merge conflicts
  copy        Copy pull request URL to clipboard
  files       List changed files in a PR
  list        List open PRs and update status
  preview     Open PR/MR preview URL for current branch
  pulse       Summarize PR activity and attention items

Flags:
  -f, --finder             Reveal file in Finder/Explorer
  -h, --help               help for pr
      --include-resolved   Include resolved comments
      --json               Output as JSON
      --my-comments        Show only my comments
      --no-fetch           Skip fetching additional data
      --open               Open file after saving
      --overwrite          Overwrite existing file
      --show               Display PR in terminal instead of saving
      --switch             Switch to PR branch when PR URL is provided (default true)
      --sync-all           Sync all PR data including comments and reviews
      --url                Output only the PR URL
      --verbose            Verbose output

Use "gtl pr [command] --help" for more information about a command.

Released under the MIT License.