Documentation ¶
Index ¶
- Variables
- func AnyOpsKubeLabelInSelector() string
- func EventTypeBackwardCompat(eventEmitter *events.EventEmitter, repo *v1alpha1.Repository, label string) string
- func GetPipelineRunAndBranchNameFromCancelComment(comment string) (string, string, error)
- func GetPipelineRunAndBranchNameFromTestComment(comment string) (string, string, error)
- func GetPipelineRunFromCancelComment(comment string) string
- func GetPipelineRunFromTestComment(comment string) string
- func IsAnyOpsEventType(eventType string) bool
- func IsCancelComment(comment string) bool
- func IsOkToTestComment(comment string) bool
- func ParseKeyValueArgs(input string) map[string]string
- func SetEventTypeAndTargetPR(event *info.Event, comment string)
- type EventType
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 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 IsAnyOpsEventType ¶
func IsCancelComment ¶
func IsOkToTestComment ¶
func ParseKeyValueArgs ¶ added in v0.26.0
ParseKeyValueArgs will parse things like key=value key="value" key="value1 value2" key="value1 \"value2\"" key=value1=value2.
func SetEventTypeAndTargetPR ¶
SetEventTypeAndTargetPR function will set the event type and target test pipeline run in an event.
Types ¶
Click to show internal directories.
Click to hide internal directories.