fix: [CODE-1277]: Fix response pr ret val on target branch change not updated (#3639)

* Fix response pr ret val on target branch change not updated
main
Darko Draskovic 2025-04-04 14:09:47 +00:00 committed by Harness
parent 205a25900f
commit cc64066d9a
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ func (c *Controller) ChangeTargetBranch(ctx context.Context,
oldTargetBranch := pr.TargetBranch
oldMergeBaseSHA := pr.MergeBaseSHA
_, err = c.pullreqStore.UpdateOptLock(ctx, pr, func(pr *types.PullReq) error {
pr, err = c.pullreqStore.UpdateOptLock(ctx, pr, func(pr *types.PullReq) error {
// clear merge and stats related fields
pr.MergeSHA = nil
pr.MergeTargetSHA = nil