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