This commit is contained in:
Lunny Xiao 2024-12-11 15:41:02 -08:00
parent 72f6e28f7f
commit 52639ffaa9
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -419,7 +419,7 @@ func CreatePullRequest(ctx *context.APIContext) {
}
defer ci.Close()
if ci.IsPull() {
if !ci.IsPull() {
ctx.Error(http.StatusUnprocessableEntity, "Bad base or head refs", "Only support branch to branch comparison")
return
}