Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Token string
Owner string
Repo string
BaseURL string // override for testing; defaults to "https://api.github.com"
HTTPClient *http.Client
}
Client queries the GitHub API for commit-related PR metadata.
func (*Client) LookupCommitPRs ¶
LookupCommitPRs returns PR and linked issue references for a single commit SHA.
func (*Client) ResolveCommitPRs ¶
ResolveCommitPRs looks up PR metadata for multiple commit SHAs concurrently. Returns a map from full SHA to references. On per-commit errors, the commit is silently skipped. Only commits with non-empty references are included.
Click to show internal directories.
Click to hide internal directories.