{"modulePath":"github.com/uber/submitqueue","version":"v0.1.0-dev6","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Types\n\n```go\ntype ChangeID struct {\n\t// Scheme captures the source variant (e.g., \"github\", \"ghe\", \"ghes\").\n\tScheme string\n\t// Org is the organization or owner of the repository.\n\tOrg string\n\t// Repo is the repository name.\n\tRepo string\n\t// PRNumber is the pull request number.\n\tPRNumber int\n\t// HeadCommitSHA is the head commit SHA at the time of request creation.\n\tHeadCommitSHA string\n}\n```\nChangeID represents a parsed GitHub-family change identifier. Covers GitHub.com, GitHub Enterprise (GHE), and GitHub Enterprise Server (GHES) since they share the same pull request model. Format: {scheme}://{owner}/{repo}/pull/{pr\\_number}/{head\\_commit\\_sha}\n\n```go\nfunc ParseChangeID(raw string) (ChangeID, error)\n```\nParseChangeID parses a raw change ID string into a ChangeID. Expected format: {scheme}://{owner}/{repo}/pull/{pr\\_number}/{head\\_commit\\_sha} The parser works from the end: SHA (last), PR number (second-to-last), the literal \"pull\" segment (third-to-last), and everything before is the repo path (split into owner and repo).\n\n```go\nfunc (c ChangeID) OwnerRepo() string\n```\nOwnerRepo returns the \"{org}/{repo}\" string.\n\n```go\nfunc (c ChangeID) String() string\n```\nString returns the string representation of the change ID.\n\n","path":"github.com/uber/submitqueue/entity/github","name":"github","synopsis":"","isRedistributable":true}
