opscomments

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 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 AnyOpsKubeLabelInSelector added in v0.30.0

func AnyOpsKubeLabelInSelector() string

AnyOpsKubeLabelInSelector will output a Kubernetes label out of all possible CommentEvent Type for selection.

func CancelAllRegex added in v0.44.0

func CancelAllRegex(prefix string) *regexp.Regexp

func CancelSingleRegex added in v0.44.0

func CancelSingleRegex(prefix string) *regexp.Regexp

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 GetSHAFromOkToTestComment added in v0.39.2

func GetSHAFromOkToTestComment(comment, prefix string) string

GetSHAFromOkToTestComment extracts the optional SHA from an /ok-to-test comment.

func IsAnyOpsEventType

func IsAnyOpsEventType(eventType string) bool

func IsCancelComment

func IsCancelComment(comment, prefix string) bool

func IsOkToTestComment

func IsOkToTestComment(comment, prefix string) bool

func IsTestRetestComment added in v0.44.0

func IsTestRetestComment(comment, prefix string) bool

func OkToTestRegex added in v0.44.0

func OkToTestRegex(prefix string) *regexp.Regexp

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 RetestAllRegex added in v0.44.0

func RetestAllRegex(prefix string) *regexp.Regexp

func RetestSingleRegex added in v0.44.0

func RetestSingleRegex(prefix string) *regexp.Regexp

func SetEventTypeAndTargetPR

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

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

func TestAllRegex added in v0.44.0

func TestAllRegex(prefix string) *regexp.Regexp

func TestSingleRegex added in v0.44.0

func TestSingleRegex(prefix string) *regexp.Regexp

Types

type EventType

type EventType string

func CommentEventType

func CommentEventType(comment, prefix 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