Skip to main content

Module pr_handler

Module pr_handler 

Source
Expand description

pr:// protocol handler — resolves GitHub pull request references to markdown.

URL formats:

  • N — PR N in the current repo (detected from git remote)
  • owner/repo/N — explicit repo
  • owner/repo/N/diff/M — diff view (M = file index, usually 0 for full)

Uses the GitHub REST API with optional GITHUB_TOKEN/GH_TOKEN auth.

Structs§

PrProtocolHandler
Protocol handler for pr:// URLs.