Documentation
¶
Index ¶
- Constants
- func BranchSliceToNameSlice(branches []*github.Branch) []string
- func Environments(repo api.Repository, githubClient *github.Client) ([]api.CIEnvironment, error)
- func RoundTripperToAccessToken(rt http.RoundTripper) (string, error)
- func ToMergeMethod(mergeStrategyOptions api.MergeStrategyOptions) string
- func ToMergeRequestLabels(labels []*github.Label) []string
- func ToStandardMergeRequestState(state string) api.MergeRequestState
- func ToStandardUser(user *github.User) api.User
- func Variables(repo api.Repository, githubClient *github.Client) ([]api.CIVariable, error)
Constants ¶
View Source
const PageSize = 100
Variables ¶
This section is empty.
Functions ¶
func BranchSliceToNameSlice ¶
BranchSliceToNameSlice converts a slice of branches to a slice of branch names
func Environments ¶
func Environments(repo api.Repository, githubClient *github.Client) ([]api.CIEnvironment, error)
func RoundTripperToAccessToken ¶
func RoundTripperToAccessToken(rt http.RoundTripper) (string, error)
RoundTripperToAccessToken takes a ghinstallation round-tripper and obtains a new access token
func ToMergeMethod ¶
func ToMergeMethod(mergeStrategyOptions api.MergeStrategyOptions) string
func ToMergeRequestLabels ¶
func ToStandardMergeRequestState ¶
func ToStandardMergeRequestState(state string) api.MergeRequestState
func Variables ¶
func Variables(repo api.Repository, githubClient *github.Client) ([]api.CIVariable, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.