Versions in this module Expand all Collapse all v0 v0.2.0 Jan 20, 2026 Changes in this version + const GhDefaultHostname + func ApiRoot(h string) string + func Backoff(first bool, previous, limit time.Duration, err error) time.Duration + func Classifier(err error) retry.Action + func GenerateInstallationToken(ctx context.Context, client *http.Client, server string, app GitHubApp) (string, error) + func NewGitHubError(httpResp *http.Response, innerErr error) error + func RateLimited(err GitHubError) bool + func TransientError(statusCode int) bool + type AddRequest struct + Context string + Description string + State string + TargetURL string + type CommitStatus struct + func NewCommitStatus(target *Target, token, owner, repo, context string, log *slog.Logger) CommitStatus + func (cs CommitStatus) Add(ctx context.Context, sha, state, targetURL, description string) error + type GitHubApp struct + ClientId string + InstallationId int + PrivateKey string + func (app *GitHubApp) IsZero() bool + type GitHubError struct + Date time.Time + OauthInfo string + RateLimitRemaining int + RateLimitReset time.Time + StatusCode int + func (ghe GitHubError) Error() string + func (ghe GitHubError) Unwrap() error + type GitURL struct + FullName string + Owner string + Repo string + URL *url.URL + func ParseGitPseudoURL(rawURL string) (GitURL, error) + type StatusError struct + Details string + StatusCode int + What string + func (e *StatusError) Error() string + type Target struct + Client *http.Client + Retry retry.Retry + Server string