···284284 // "422":
285285 // "$ref": "#/responses/validationError"
286286287287+ if form.Head == form.Base {
288288+ ctx.Error(http.StatusUnprocessableEntity, "BaseHeadSame",
289289+ "Invalid PullRequest: There are no changes between the head and the base")
290290+ return
291291+ }
292292+287293 var (
288294 repo = ctx.Repo.Repository
289295 labelIDs []int64