MCPcopy
hub / github.com/harness/harness / IsValidCodeComment

Method IsValidCodeComment

types/pullreq_activity.go:62–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62func (a *PullReqActivity) IsValidCodeComment() bool {
63 return a.Type == enum.PullReqActivityTypeCodeComment &&
64 a.Kind == enum.PullReqActivityKindChangeComment &&
65 a.CodeComment != nil
66}
67
68func (a *PullReqActivity) AsCodeComment() *CodeComment {
69 if !a.IsValidCodeComment() {

Callers 6

AsCodeCommentMethod · 0.95
CommentUpdateMethod · 0.95
CommentCreateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected