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
GithubClient returns either a new instance of the Github client, or a previously initialised client.
func (*OrgConfig) SetGithubToken ¶ added in v0.4.1
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.
Click to show internal directories.
Click to hide internal directories.