github

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package github provides functionality to interact with the GitHub API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	Name          string
	Language      string
	Visibility    string
	DefaultBranch string
	CloneURL      string
	SSHURL        string
}

Repo represents a simplified repository structure returned by the GitHub API.

func FetchRepos

func FetchRepos(owner string, limit int) ([]Repo, error)

FetchRepos retrieves repositories for a given owner up to the specified limit.

func FetchReposWithClient

func FetchReposWithClient(ctx context.Context, client *github.Client, owner string, limit int) ([]Repo, error)

FetchReposWithClient allows injecting a GitHub client for retrieving repositories. This is primarily exposed for testing purposes.

Jump to

Keyboard shortcuts

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