Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PRInfo ¶
type PRInfo struct {
Platform Platform
Host string
Owner string // GitHub owner or Bitbucket project (used as owner equivalent)
Project string // Bitbucket project (same as Owner for Bitbucket, empty for GitHub)
Repo string
Number int
RepoURL string
}
PRInfo contains parsed information from a pull request URL.
func ParsePRURL ¶
ParsePRURL parses a PR URL and extracts platform, host, owner/project, repo, PR number, and repo URL. Supports:
- GitHub: https://github.com/{owner}/{repo}/pull/{number}
- Bitbucket Server: https://{host}/projects/{project}/repos/{repo}/pull-requests/{number}[/overview]
Returns error for unrecognized URL patterns or non-HTTPS URLs.
Click to show internal directories.
Click to hide internal directories.