From 5c26f79940c99f137c6e6ac3b4ea00ff3e18bf5d Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 9 Sep 2014 20:11:50 -0700 Subject: [PATCH] fixed error with baseURL in github status api plugin --- plugin/notify/github/github.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/notify/github/github.go b/plugin/notify/github/github.go index 7d7b22ac7..b8eaa2afb 100644 --- a/plugin/notify/github/github.go +++ b/plugin/notify/github/github.go @@ -95,7 +95,7 @@ func send(rawurl, host, owner, repo, status, desc, target, ref, token string) er // the base url. Per the documentation, we need to // ensure there is a trailing slash. if host != model.RemoteGithub { - client.BaseURL, _ = getEndpoint(rawurl)+"/" + client.BaseURL, _ = getEndpoint(rawurl) } _, _, err := client.Repositories.CreateStatus(owner, repo, ref, &data) @@ -153,6 +153,6 @@ func getEndpoint(rawurl string) (*url.URL, error) { if err != nil { return nil, err } - uri.Path = "/api/v3" + uri.Path = "/api/v3/" return uri, nil }