1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-16 11:18:12 +00:00

Move and merge some functions about issue

This commit is contained in:
Lunny Xiao
2024-10-01 19:55:48 -07:00
parent 3a4a1bffbe
commit 1649d46908
17 changed files with 261 additions and 261 deletions

View File

@@ -630,7 +630,7 @@ func EditPullRequest(ctx *context.APIContext) {
if form.Body != nil {
err = issue_service.ChangeContent(ctx, issue, ctx.Doer, *form.Body, issue.ContentVersion)
if err != nil {
if errors.Is(err, issues_model.ErrIssueAlreadyChanged) {
if errors.Is(err, issue_service.ErrIssueAlreadyChanged) {
ctx.Error(http.StatusBadRequest, "ChangeContent", err)
return
}