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 ¶
func NewClient(token string, logf func(string, ...interface{}), tracef func(string, ...interface{})) *Client
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) ListOrgRepos ¶
ListOrgRepos lists all repositories for the given organisation.
Click to show internal directories.
Click to hide internal directories.