MCPcopy
hub / github.com/harness/harness / eventBase

Function eventBase

app/api/controller/pullreq/controller.go:330–338  ·  view source on GitHub ↗
(pr *types.PullReq, principal *types.Principal)

Source from the content-addressed store, hash-verified

328}
329
330func eventBase(pr *types.PullReq, principal *types.Principal) pullreqevents.Base {
331 return pullreqevents.Base{
332 PullReqID: pr.ID,
333 SourceRepoID: pr.SourceRepoID,
334 TargetRepoID: pr.TargetRepoID,
335 Number: pr.Number,
336 PrincipalID: principal.ID,
337 }
338}
339
340func validateTitle(title string) error {
341 if title == "" {

Callers 8

UpdateMethod · 0.70
ReviewSubmitMethod · 0.70
MergeMethod · 0.70
ChangeTargetBranchMethod · 0.70
CreateMethod · 0.70
StateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…