From ecdd00181158b8cee828693e24322b9978b17b2f Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 9 Oct 2014 19:03:11 -0700 Subject: [PATCH] prevent PRs from being displayed in build badge --- server/datastore/database/commit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/datastore/database/commit.go b/server/datastore/database/commit.go index 56f1cf04..5ad1e46f 100644 --- a/server/datastore/database/commit.go +++ b/server/datastore/database/commit.go @@ -133,6 +133,7 @@ SELECT * FROM commits WHERE repo_id = ? AND commit_branch = ? + AND commit_pr = '' ORDER BY commit_id DESC LIMIT 1 `