diff --git a/remote/gitea/gitea.go b/remote/gitea/gitea.go index d4e41259a..38e16826c 100644 --- a/remote/gitea/gitea.go +++ b/remote/gitea/gitea.go @@ -42,7 +42,7 @@ const ( ) // getStatus is a helper functin that converts a Drone -// status to a GitHub status. +// status to a Gitea status. func getStatus(status string) gitea.StatusState { switch status { case model.StatusPending, model.StatusBlocked: diff --git a/remote/gitea/gitea_test.go b/remote/gitea/gitea_test.go index e2006989b..f4b7060f2 100644 --- a/remote/gitea/gitea_test.go +++ b/remote/gitea/gitea_test.go @@ -117,7 +117,7 @@ func Test_gitea(t *testing.T) { }) }) - g.It("Should register repositroy hooks", func() { + g.It("Should register repository hooks", func() { err := c.Activate(fakeUser, fakeRepo, "http://localhost") g.Assert(err == nil).IsTrue() }) @@ -134,7 +134,7 @@ func Test_gitea(t *testing.T) { g.Assert(string(raw)).Equal("{ platform: linux/amd64 }") }) - g.It("Should return nil frome send build status", func() { + g.It("Should return nil from send build status", func() { err := c.Status(fakeUser, fakeRepo, fakeBuild, "http://gitea.io") g.Assert(err == nil).IsTrue() }) diff --git a/remote/gitea/parse.go b/remote/gitea/parse.go index 0e40bab70..4a3921dd6 100644 --- a/remote/gitea/parse.go +++ b/remote/gitea/parse.go @@ -22,7 +22,7 @@ const ( refTag = "tag" ) -// parseHook parses a Bitbucket hook from an http.Request request and returns +// parseHook parses a Gitea hook from an http.Request request and returns // Repo and Build detail. If a hook type is unsupported nil values are returned. func parseHook(r *http.Request) (*model.Repo, *model.Build, error) { switch r.Header.Get(hookEvent) {