(pr *types.PullReq, principal *types.Principal)
| 328 | } |
| 329 | |
| 330 | func 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 | |
| 340 | func validateTitle(title string) error { |
| 341 | if title == "" { |
no outgoing calls
no test coverage detected
searching dependent graphs…