From fefbf9f06b32e4607191e74ddd722399512ce213 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 3 May 2017 10:06:11 +0800 Subject: [PATCH] fix typo Signed-off-by: Bo-Yi Wu --- remote/gitea/gitea.go | 2 +- remote/gitea/gitea_test.go | 4 ++-- remote/gitea/parse.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/remote/gitea/gitea.go b/remote/gitea/gitea.go index d4e41259..38e16826 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 e2006989..f4b7060f 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 0e40bab7..4a3921dd 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) {