Skip to content

The Unified and Autonomous Development Platform

fix(api): POST /pulls/{requestId}/request-for-changes approves the pull request instead of requesting changes

Robin Shen8be019900e3e
diff --git a/server-core/src/main/java/io/onedev/server/rest/resource/PullRequestResource.java b/server-core/src/main/java/io/onedev/server/rest/resource/PullRequestResource.java
index 370fbfc35d..f2ab610291 100644
--- a/server-core/src/main/java/io/onedev/server/rest/resource/PullRequestResource.java
+++ b/server-core/src/main/java/io/onedev/server/rest/resource/PullRequestResource.java
@@ -405,7 +405,7 @@ public class PullRequestResource {
if (user == null)
throw new UnauthorizedException();
- pullRequestReviewService.review(user, request, true, note);
+ pullRequestReviewService.review(user, request, false, note);
return Response.ok().build();
}