aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2024-05-09 01:11:43 +0900
committerGitHub <noreply@github.com>2024-05-08 16:11:43 +0000
commitf7d2f695a4c57b245830a526e77fa62e99e00254 (patch)
treeae475156194e0db918bb8137f90a620b345edc84 /routers/web/repo
parent3fdb2d4ad8a3bf4c5fbcc417a274be2fc695882b (diff)
downloadgitea-f7d2f695a4c57b245830a526e77fa62e99e00254.tar.gz
gitea-f7d2f695a4c57b245830a526e77fa62e99e00254.zip
Fix misspelling of mergable (#30896)
https://github.com/go-gitea/gitea/pull/25812#issuecomment-2099833692 Follow #30573
Diffstat (limited to 'routers/web/repo')
-rw-r--r--routers/web/repo/pull.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go
index 7041175d9a..bbdc6ca631 100644
--- a/routers/web/repo/pull.go
+++ b/routers/web/repo/pull.go
@@ -1007,7 +1007,7 @@ func MergePullRequest(ctx *context.Context) {
}
// start with merging by checking
- if err := pull_service.CheckPullMergable(ctx, ctx.Doer, &ctx.Repo.Permission, pr, mergeCheckType, form.ForceMerge); err != nil {
+ if err := pull_service.CheckPullMergeable(ctx, ctx.Doer, &ctx.Repo.Permission, pr, mergeCheckType, form.ForceMerge); err != nil {
switch {
case errors.Is(err, pull_service.ErrIsClosed):
if issue.IsPull {
@@ -1021,7 +1021,7 @@ func MergePullRequest(ctx *context.Context) {
ctx.JSONError(ctx.Tr("repo.pulls.has_merged"))
case errors.Is(err, pull_service.ErrIsWorkInProgress):
ctx.JSONError(ctx.Tr("repo.pulls.no_merge_wip"))
- case errors.Is(err, pull_service.ErrNotMergableState):
+ case errors.Is(err, pull_service.ErrNotMergeableState):
ctx.JSONError(ctx.Tr("repo.pulls.no_merge_not_ready"))
case models.IsErrDisallowedToMerge(err):
ctx.JSONError(ctx.Tr("repo.pulls.no_merge_not_ready"))