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 }