Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeInputs ¶
func MakeInputs(results []Result, defaults map[string]any) ([]map[string]*apiextensionsv1.JSON, error)
MakeInputs converts a list of results into a list of ResourceSet inputs with defaults.
Types ¶
type Filters ¶
type Filters struct { IncludeBranchRe *regexp.Regexp ExcludeBranchRe *regexp.Regexp Labels []string Limit int }
Filters holds the filters for the Git SaaS responses.
type GitHubProvider ¶
func NewGitHubProvider ¶
func NewGitHubProvider(ctx context.Context, opts Options) (*GitHubProvider, error)
func (*GitHubProvider) ListBranches ¶
func (*GitHubProvider) ListRequests ¶
type GitLabProvider ¶
func NewGitLabProvider ¶
func NewGitLabProvider(ctx context.Context, opts Options) (*GitLabProvider, error)
func (*GitLabProvider) ListBranches ¶
func (*GitLabProvider) ListRequests ¶
type Interface ¶
type Interface interface { // ListBranches returns a list of branches that match the filters. ListBranches(ctx context.Context, opts Options) ([]Result, error) // ListRequests returns a list of pull/merge requests that match the filters. ListRequests(ctx context.Context, opts Options) ([]Result, error) }
Interface that all Git SaaS providers must implement.
type Result ¶
type Result struct { ID string `json:"id"` SHA string `json:"sha"` Branch string `json:"branch"` Author string `json:"author,omitempty"` Title string `json:"title,omitempty"` }
Result holds the information extracted from the Git SaaS provider response.
Click to show internal directories.
Click to hide internal directories.