AutoMaintainer

package
v0.0.0-...-333c0cd Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractMaintainer

func ExtractMaintainer(gitlabClient *gitlab.Client, projectID interface{}, filename, ref string) (*[2]Maintainer, error)

ExtractMaintainer takes a ProjectID and a filename and tries to extract the user name and email address of the '# Maintainer:' field

Types

type Maintainer

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

func (*Maintainer) GetEmail

func (m *Maintainer) GetEmail() string

func (*Maintainer) GetName

func (m *Maintainer) GetName() string

type Service

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

func New

func New(dryRun bool, gitlabClient *gitlab.Client) Service

func (Service) GetActions

func (Service) GetActions() map[MergeRequest.Action]bool

func (Service) GetStates

func (Service) GetStates() map[MergeRequest.State]bool

func (Service) Process

func (s Service) Process(payload *gitlab.MergeEvent, log *zerolog.Logger)

Process processes a *gitlab.MergeEvent to automatically add a maintainer to a merge request

Jump to

Keyboard shortcuts

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