Documentation
¶
Index ¶
- func DisplayMultiplePipelines(s *iostreams.IOStreams, p []*gitlab.PipelineInfo, projectID string) string
- func DisplaySchedules(i *iostreams.IOStreams, s []*gitlab.PipelineSchedule, projectID string) string
- func GetBranch(branch string, currentBranch func() (string, error), repo glrepo.Interface, ...) string
- func GetDefaultBranch(repo glrepo.Interface, client *gitlab.Client) string
- func GetJobId(inputs *JobInputs, opts *JobOptions) (int, error)
- func IDsFromArgs(args []string) ([]int, error)
- func RunTraceSha(ctx context.Context, apiClient *gitlab.Client, w io.Writer, pid any, ...) error
- func TraceJob(inputs *JobInputs, opts *JobOptions) error
- type JobInputs
- type JobOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplaySchedules ¶
func GetBranch ¶ added in v1.69.0
func GetBranch(branch string, currentBranch func() (string, error), repo glrepo.Interface, client *gitlab.Client) string
GetBranch returns the specified branch, current git branch, or the default branch from API
func GetDefaultBranch ¶
GetDefaultBranch fetches the repository's default branch from GitLab API. Falls back to "main" if the API call fails or returns empty.
func IDsFromArgs ¶
IDsFromArgs parses list of IDs from space or comma-separated values
func RunTraceSha ¶
func TraceJob ¶
func TraceJob(inputs *JobInputs, opts *JobOptions) error
Types ¶
Click to show internal directories.
Click to hide internal directories.