github

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoToken = &noTokenError{}

ErrNoToken is returned when NewClient is called with an empty token.

Functions

This section is empty.

Types

type Client

type Client interface {
	Owner() string
	ListRepos(ctx context.Context, limit int) ([]*gogithub.Repository, error)
	ListOpenPRs(ctx context.Context, owner, repo, branch string) ([]*gogithub.PullRequest, error)
	ListMergedPRs(ctx context.Context, owner, repo, branch string) ([]*gogithub.PullRequest, error)
}

Client abstracts the GitHub API calls used by repo-sync.

func NewClient

func NewClient(token string) (Client, error)

NewClient creates an authenticated GitHub client and resolves the authenticated user's login as the owner.

Jump to

Keyboard shortcuts

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