@@ -823,7 +823,7 @@ func DismissPullReview(ctx *context.APIContext) {
823823 // "422":
824824 // "$ref": "#/responses/validationError"
825825 opts := web .GetForm (ctx ).(* api.DismissPullReviewOptions )
826- dismissReview (ctx , opts .Message , true )
826+ dismissReview (ctx , opts .Message , true , opts . Priors )
827827}
828828
829829// UnDismissPullReview cancel to dismiss a review for a pull request
@@ -863,10 +863,10 @@ func UnDismissPullReview(ctx *context.APIContext) {
863863 // "$ref": "#/responses/forbidden"
864864 // "422":
865865 // "$ref": "#/responses/validationError"
866- dismissReview (ctx , "" , false )
866+ dismissReview (ctx , "" , false , false )
867867}
868868
869- func dismissReview (ctx * context.APIContext , msg string , isDismiss bool ) {
869+ func dismissReview (ctx * context.APIContext , msg string , isDismiss , dismissPriors bool ) {
870870 if ! ctx .Repo .IsAdmin () {
871871 ctx .Error (http .StatusForbidden , "" , "Must be repo admin" )
872872 return
@@ -886,7 +886,7 @@ func dismissReview(ctx *context.APIContext, msg string, isDismiss bool) {
886886 return
887887 }
888888
889- _ , err := pull_service .DismissReview (ctx , review .ID , ctx .Repo .Repository .ID , msg , ctx .Doer , isDismiss )
889+ _ , err := pull_service .DismissReview (ctx , review .ID , ctx .Repo .Repository .ID , msg , ctx .Doer , isDismiss , dismissPriors )
890890 if err != nil {
891891 ctx .Error (http .StatusInternalServerError , "pull_service.DismissReview" , err )
892892 return
0 commit comments