Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterRepos ¶
func FilterRepos(repos []model.RepoInfo, cfg *config.Config) (included []model.RepoInfo, excluded []string)
FilterRepos applies visibility, archived, and exclusion filters to the repo list.
func ResolveToken ¶
func ResolveToken() string
ResolveToken finds a GitHub token from environment variables or gh CLI. Priority: GITHUB_TOKEN > GH_TOKEN > gh auth token
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps GitHub API access.
func NewClient ¶
NewClient creates a new GitHub API client. It resolves a token from GITHUB_TOKEN, GH_TOKEN env vars, or gh CLI auth. logf is called for verbose (level-1) messages; tracef for trace (level-2) messages.
func (*Client) GetAuthenticatedUser ¶ added in v0.3.6
GetAuthenticatedUser returns the login of the authenticated token owner. The result is cached after the first call. Safe for concurrent use.
func (*Client) ListOrgRepos ¶
ListOrgRepos lists all repositories for the given organisation.
func (*Client) ListOwnRepos ¶ added in v0.3.6
ListOwnRepos lists all repositories (public and private) for the authenticated user.