Skip to content

Commit 52639ff

Browse files
committed
Fix bug
1 parent 72f6e28 commit 52639ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func CreatePullRequest(ctx *context.APIContext) {
419419
}
420420
defer ci.Close()
421421

422-
if ci.IsPull() {
422+
if !ci.IsPull() {
423423
ctx.Error(http.StatusUnprocessableEntity, "Bad base or head refs", "Only support branch to branch comparison")
424424
return
425425
}

0 commit comments

Comments
 (0)