pub fn parse_pr_reference(input: &str) -> Result<Option<PullRequest>>Expand description
Parse a PR reference from user input
Supported formats:
#123- GitHub shorthandpr#123orpr-123- Explicit PR referenceshttps://github.com/owner/repo/pull/123- GitHub PR URLorigin/pull/123/head- Direct remote ref
Returns Ok(None) if the input is not a PR reference.
Returns Ok(Some(PullRequest)) if successfully parsed.
Returns Err if the input looks like a PR reference but is malformed.