gitlab

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(
	adapter mrAdapterI, projectAdapter projectAdapterI, projectTemplateAdapter projectTemplateAdapterI,
) (*Service, error)

func (*Service) CreateMR

func (service *Service) CreateMR(ctx context.Context, mr gitlabcore.MRInfo) (url string, err error)

func (*Service) FillMRTemplateDescription

func (service *Service) FillMRTemplateDescription(_ context.Context, description, tickerKey string) string

func (*Service) GetDefaultMRTemplateDescription

func (service *Service) GetDefaultMRTemplateDescription(
	ctx context.Context, projectID gitlabcore.ProjectID,
) (description string, err error)

func (*Service) GetProjectIDByURL

func (service *Service) GetProjectIDByURL(ctx context.Context, url string) (projectID gitlabcore.ProjectID, err error)

Jump to

Keyboard shortcuts

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