opscomments

package
v0.27.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoOpsCommentEventType        = EventType("no-ops-comment")
	TestAllCommentEventType      = EventType("test-all-comment")
	TestSingleCommentEventType   = EventType("test-comment")
	RetestSingleCommentEventType = EventType("retest-comment")
	RetestAllCommentEventType    = EventType("retest-all-comment")
	OnCommentEventType           = EventType("on-comment")
	CancelCommentSingleEventType = EventType("cancel-comment")
	CancelCommentAllEventType    = EventType("cancel-all-comment")
	OkToTestCommentEventType     = EventType("ok-to-test-comment")
)

Functions

func EventTypeBackwardCompat added in v0.27.2

func EventTypeBackwardCompat(eventEmitter *events.EventEmitter, repo *v1alpha1.Repository, label string) string

EventTypeBackwardCompat handle the backward compatibility we need to keep until we have done the deprecated notice

2024-07-01 chmouel

set anyOpsComments to pull_request see https://issues.redhat.com/browse/SRVKP-5775
we keep on-comment to the "on-comment" type

func GetPipelineRunAndBranchNameFromCancelComment

func GetPipelineRunAndBranchNameFromCancelComment(comment string) (string, string, error)

func GetPipelineRunAndBranchNameFromTestComment

func GetPipelineRunAndBranchNameFromTestComment(comment string) (string, string, error)

func GetPipelineRunFromCancelComment

func GetPipelineRunFromCancelComment(comment string) string

func GetPipelineRunFromTestComment

func GetPipelineRunFromTestComment(comment string) string

func IsAnyOpsEventType

func IsAnyOpsEventType(eventType string) bool

func IsCancelComment

func IsCancelComment(comment string) bool

func IsOkToTestComment

func IsOkToTestComment(comment string) bool

func ParseKeyValueArgs added in v0.26.0

func ParseKeyValueArgs(input string) map[string]string

ParseKeyValueArgs will parse things like key=value key="value" key="value1 value2" key="value1 \"value2\"" key=value1=value2.

func SetEventTypeAndTargetPR

func SetEventTypeAndTargetPR(event *info.Event, comment string)

SetEventTypeAndTargetPR function will set the event type and target test pipeline run in an event.

Types

type EventType

type EventType string

func CommentEventType

func CommentEventType(comment string) EventType

func (EventType) String

func (e EventType) String() string

Jump to

Keyboard shortcuts

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