github

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 9 Imported by: 0

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) *Client

NewClient creates a new GitHub API client. It resolves a token from GITHUB_TOKEN, GH_TOKEN env vars, or gh CLI auth.

func (*Client) ListOrgRepos

func (c *Client) ListOrgRepos(org string) ([]model.RepoInfo, error)

ListOrgRepos lists all repositories for the given organisation.

Jump to

Keyboard shortcuts

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