AutoLabeler

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(needle string, haystack []string) bool

Types

type RepoPath

type RepoPath struct {
	Repository string
	PackageDir string
	IsAPKBUILD bool
}

RepoPath holds Repository and PackageDir and APKBUILD. Repository is the name of the repository in which the package resides which is acquired by looking at the second to last directory component, PackageDir is the directory in which the APKBUILD resides and is the last directory component and APKBUILD is a boolean that indicates whether the path has APKBUILD as the last component

func ParsePath

func ParsePath(path string) (RepoPath, error)

ParsePath fills a RepoPath struct with its proper values, it takes one string that must be the path and parses it

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)

Jump to

Keyboard shortcuts

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