github

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: MIT Imports: 7 Imported by: 0

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

func (c *Client) LookupCommitPRs(sha string) ([]string, error)

LookupCommitPRs returns PR and linked issue references for a single commit SHA.

func (*Client) ResolveCommitPRs

func (c *Client) ResolveCommitPRs(shas []string) map[string][]string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL