* fix build
pull/3545/head
Marko Gaćeša 2024-07-25 11:36:53 +00:00 committed by Harness
parent 7b17cc7831
commit c4b15ab5a9
1 changed files with 3 additions and 3 deletions

View File

@ -379,8 +379,8 @@ func (s *Service) handleEventPullReqUpdated(
return s.triggerForEventWithPullReq(ctx, enum.WebhookTriggerPullReqUpdated, return s.triggerForEventWithPullReq(ctx, enum.WebhookTriggerPullReqUpdated,
event.ID, event.Payload.PrincipalID, event.Payload.PullReqID, event.ID, event.Payload.PrincipalID, event.Payload.PullReqID,
func(principal *types.Principal, pr *types.PullReq, targetRepo, sourceRepo *types.Repository) (any, error) { func(principal *types.Principal, pr *types.PullReq, targetRepo, sourceRepo *types.Repository) (any, error) {
targetRepoInfo := repositoryInfoFrom(targetRepo, s.urlProvider) targetRepoInfo := repositoryInfoFrom(ctx, targetRepo, s.urlProvider)
sourceRepoInfo := repositoryInfoFrom(sourceRepo, s.urlProvider) sourceRepoInfo := repositoryInfoFrom(ctx, sourceRepo, s.urlProvider)
return &PullReqUpdatedPayload{ return &PullReqUpdatedPayload{
BaseSegment: BaseSegment{ BaseSegment: BaseSegment{
@ -389,7 +389,7 @@ func (s *Service) handleEventPullReqUpdated(
Principal: principalInfoFrom(principal.ToPrincipalInfo()), Principal: principalInfoFrom(principal.ToPrincipalInfo()),
}, },
PullReqSegment: PullReqSegment{ PullReqSegment: PullReqSegment{
PullReq: pullReqInfoFrom(pr, targetRepo, s.urlProvider), PullReq: pullReqInfoFrom(ctx, pr, targetRepo, s.urlProvider),
}, },
PullReqTargetReferenceSegment: PullReqTargetReferenceSegment{ PullReqTargetReferenceSegment: PullReqTargetReferenceSegment{
TargetRef: ReferenceInfo{ TargetRef: ReferenceInfo{