mirror of https://github.com/harness/drone.git
parent
7b17cc7831
commit
c4b15ab5a9
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue