From 6c2b64dd5541a686d0b0d23169836b8b58166a7f Mon Sep 17 00:00:00 2001 From: Scott Ferguson Date: Mon, 10 Feb 2014 14:08:33 -0600 Subject: [PATCH] Read the actual commit status when updating Github --- pkg/queue/queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/queue/queue.go b/pkg/queue/queue.go index 5d9a9e616..7ad39fde1 100644 --- a/pkg/queue/queue.go +++ b/pkg/queue/queue.go @@ -201,7 +201,7 @@ func updateGitHubStatus(repo *Repo, commit *Commit) error { // convert from drone status to github status var message, status string - switch status { + switch commit.Status { case "Success": status = "success" message = "The build succeeded on drone.io"