github

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 5 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 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 (or unauthenticated if token=="") 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