Documentation ¶
Index ¶
- func Auth(host string) (string, error)
- type Builder
- type Client
- func (gh *Client) CreateReleases(ctx context.Context, owner string, releases []*RepositoryRelease, ...) []*RepositoryReleaseResponse
- func (gh *Client) Orgs(ctx context.Context) (<-chan *OrgResponse, func() error)
- func (gh *Client) ReleasableReposByOrg(ctx context.Context, org, branch string) (<-chan *ReleaseableRepoResponse, func() error)
- func (gh *Client) ReleaseableRepo(ctx context.Context, org string, repo *github.Repository, branch string) (*ReleaseableRepoResponse, error)
- func (gh *Client) ReleaseableReposByUser(ctx context.Context, user, branch string) (<-chan *ReleaseableRepoResponse, func() error)
- func (gh *Client) User(ctx context.Context) (*github.User, error)
- type OrgResponse
- type Organization
- type ReleaseableRepoResponse
- type RepositoryRelease
- type RepositoryReleaseResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateReleases ¶
func (gh *Client) CreateReleases(ctx context.Context, owner string, releases []*RepositoryRelease, createReleaseBranch bool) []*RepositoryReleaseResponse
func (*Client) Orgs ¶
func (gh *Client) Orgs(ctx context.Context) (<-chan *OrgResponse, func() error)
Orgs async retrival of GitHub organizations. Returns a channel to listen to for OrgsResponse and the function to run as a goroutine to acquire them.
func (*Client) ReleasableReposByOrg ¶
func (gh *Client) ReleasableReposByOrg(ctx context.Context, org, branch string) (<-chan *ReleaseableRepoResponse, func() error)
ReleaseableReposByOrg async retrival of GitHub repositories for an organization. Returns a channel to listen to for ReleasableRepos and the function to run as a goroutine to acquire them.
Filters out: archived, templates, repositories with 0 new commits since last Tag
func (*Client) ReleaseableRepo ¶
func (gh *Client) ReleaseableRepo(ctx context.Context, org string, repo *github.Repository, branch string) (*ReleaseableRepoResponse, error)
func (*Client) ReleaseableReposByUser ¶
type OrgResponse ¶
type OrgResponse struct { // Total determines when all user Organizations are finished being loaded. Total int // Org GitHub organization or the current user. Org *Organization }
type Organization ¶
type ReleaseableRepoResponse ¶
type ReleaseableRepoResponse struct { // Total determines when all user Organizations are finished being loaded. Total int32 // Repos in a GitHub organization that have been updated more recently than their newest tag/release. Commits []*github.RepositoryCommit Repo *github.Repository LatestTag *github.RepositoryTag Branches []*github.Branch Branch string }
type RepositoryRelease ¶
Click to show internal directories.
Click to hide internal directories.