githubcommon

package
v0.0.0-...-5da2f6a Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PageSize = 100

Variables

This section is empty.

Functions

func BranchSliceToNameSlice

func BranchSliceToNameSlice(branches []*github.Branch) []string

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 ToMergeRequestLabels(labels []*github.Label) []string

func ToStandardMergeRequestState

func ToStandardMergeRequestState(state string) api.MergeRequestState

func ToStandardUser

func ToStandardUser(user *github.User) api.User

func Variables

func Variables(repo api.Repository, githubClient *github.Client) ([]api.CIVariable, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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