Documentation
¶
Index ¶
- type Client
- func (c *Client) Context() context.Context
- func (c *Client) EnsureProfileRepo() error
- func (c *Client) FetchAllRepos() ([]Repo, error)
- func (c *Client) FetchProfile() (*Profile, error)
- func (c *Client) FetchRepoLanguages(repoName string) (map[string]int, error)
- func (c *Client) PushReadme(content string) error
- type Profile
- type Repo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client wraps the GitHub API client with the target username.
func NewClient ¶
NewClient creates a GitHub client for the given username. If token is empty, the client is unauthenticated (public API only, lower rate limits).
func (*Client) EnsureProfileRepo ¶
EnsureProfileRepo checks if the username/username repo exists, creates it if not.
func (*Client) FetchAllRepos ¶
FetchAllRepos retrieves all owned, non-fork repositories with pagination.
func (*Client) FetchProfile ¶
FetchProfile retrieves the GitHub user profile.
func (*Client) FetchRepoLanguages ¶
FetchRepoLanguages retrieves the language breakdown for a repository.
func (*Client) PushReadme ¶
PushReadme creates or updates the README.md in the profile repo.
Click to show internal directories.
Click to hide internal directories.