github

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchOrgRepos

func FetchOrgRepos(org OrgConfig) ([]repos.RepoDetails, error)

FetchOrgRepos creates a slice of RepoDetails types representing the repos owned by the specified teams in the Github org.

Types

type OrgConfig added in v0.4.0

type OrgConfig struct {
	Org          string   `mapstructure:"org"`
	Teams        []string `mapstructure:"teams"`
	IgnoredRepos []string `mapstructure:"ignores"`
	// contains filtered or unexported fields
}

OrgConfig contains fields used in releasegen's config.yaml file to configure its behaviour when generating reports about Github repositories.

func (*OrgConfig) GithubClient added in v0.4.0

func (oc *OrgConfig) GithubClient() *gh.Client

GithubClient returns either a new instance of the Github client, or a previously initialised client.

func (*OrgConfig) SetGithubToken added in v0.4.1

func (oc *OrgConfig) SetGithubToken(token string)

SetGithubToken enables the setting of the Github token for the Github org.

type Repository added in v0.3.0

type Repository struct {
	Details repos.RepoDetails
	// contains filtered or unexported fields
}

Repository represents a single Github Repository.

func (*Repository) IsArchived added in v0.3.0

func (r *Repository) IsArchived(ctx context.Context) bool

IsArchived indicates whether or not the repository is marked as archived on Github.

func (*Repository) Process added in v0.3.0

func (r *Repository) Process(ctx context.Context) error

Process populates the Repository with details of its releases, and commits.

Jump to

Keyboard shortcuts

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