github

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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