From 8c647bf0f6b19fe666c645ec16010d07bfe85a63 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Mon, 10 Jan 2022 04:32:37 -0500 Subject: Fix various typos (#18219) Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby,te,unknwon` Co-authored-by: Lunny Xiao --- routers/api/v1/repo/file.go | 2 +- routers/private/hook_pre_receive.go | 2 +- routers/web/repo/issue.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'routers') diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go index 98decfcb6f..f02c7ea345 100644 --- a/routers/api/v1/repo/file.go +++ b/routers/api/v1/repo/file.go @@ -405,7 +405,7 @@ func createOrUpdateFile(ctx *context.APIContext, opts *files_service.UpdateRepoF return files_service.CreateOrUpdateRepoFile(ctx.Repo.Repository, ctx.User, opts) } -// DeleteFile Delete a fle in a repository +// DeleteFile Delete a file in a repository func DeleteFile(ctx *context.APIContext) { // swagger:operation DELETE /repos/{owner}/{repo}/contents/{filepath} repository repoDeleteFile // --- diff --git a/routers/private/hook_pre_receive.go b/routers/private/hook_pre_receive.go index 7ad719155c..b8f61cbb11 100644 --- a/routers/private/hook_pre_receive.go +++ b/routers/private/hook_pre_receive.go @@ -404,7 +404,7 @@ func preReceivePullRequest(ctx *preReceiveContext, oldCommitID, newCommitID, ref if ctx.opts.IsWiki { ctx.JSON(http.StatusForbidden, map[string]interface{}{ - "err": "Pull requests are not suppported on the wiki.", + "err": "Pull requests are not supported on the wiki.", }) return } diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index a28b37c580..ee94e0e6d8 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -1024,7 +1024,7 @@ func NewIssuePost(ctx *context.Context) { } } -// roleDescriptor returns the Role Decriptor for a comment in/with the given repo, poster and issue +// roleDescriptor returns the Role Descriptor for a comment in/with the given repo, poster and issue func roleDescriptor(repo *repo_model.Repository, poster *user_model.User, issue *models.Issue) (models.RoleDescriptor, error) { perm, err := models.GetUserRepoPermission(repo, poster) if err != nil { -- cgit v1.2.3