From 419d43670c6c7141e18c8cd89ce96c0eb89e3225 Mon Sep 17 00:00:00 2001 From: Alex Fornuto Date: Sat, 12 Oct 2019 16:51:53 -0500 Subject: [PATCH] remove pull request count from issue count (#694) --- modules/github/github_repo.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/github/github_repo.go b/modules/github/github_repo.go index 37ee19bf..3b0abce7 100644 --- a/modules/github/github_repo.go +++ b/modules/github/github_repo.go @@ -63,7 +63,9 @@ func (repo *GithubRepo) IssueCount() int { return 0 } - return *repo.RemoteRepo.OpenIssuesCount + issuesLessPulls := *repo.RemoteRepo.OpenIssuesCount - len(repo.PullRequests) + + return issuesLessPulls } // PullRequestCount returns the total amount of pull requests as an int