From 79ccd56960a87b98e03da058db90db7b5efc3f4c Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Thu, 13 Feb 2014 13:15:46 +0600 Subject: [PATCH] Fixup back url in commit status --- pkg/queue/queue.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/queue/queue.go b/pkg/queue/queue.go index 22a1b1da..db49944c 100644 --- a/pkg/queue/queue.go +++ b/pkg/queue/queue.go @@ -225,7 +225,11 @@ func updateGitHubStatus(repo *Repo, commit *Commit) error { } client := github.New(user.GithubToken) - return client.Repos.CreateStatus(repo.Owner, repo.Name, status, settings.URL().String(), message, commit.Hash) + + var url string + url = settings.URL().String() + "/" + repo.Slug + "/commit/" + commit.Hash + + return client.Repos.CreateStatus(repo.Owner, repo.Name, status, url, message, commit.Hash) } type bufferWrapper struct {