From: Frank Duncan Date: Sat, 18 Dec 2021 20:19:40 +0000 (-0600) Subject: Fix bug where inactive branches were counted as failures X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?a=commitdiff_plain;h=195548f7ebbaccfed84fff8e9558745f59f156ec;p=candle Fix bug where inactive branches were counted as failures --- diff --git a/src/main/server.lisp b/src/main/server.lisp index 7d7af0b..338516b 100644 --- a/src/main/server.lisp +++ b/src/main/server.lisp @@ -161,5 +161,5 @@ ((project (find-project-by-name-or-die project-name))) (length (remove-if-not - (lambda (branch) (eql :failed (job-status (branch-job branch)))) + (lambda (branch) (and (branch-in-git branch) (eql :failed (job-status (branch-job branch))))) (if project (find-branch-by-project project) *all-branch*)))))