Merge pull request #311 from fidencio/topic/count-committers-from-all-the-branches

elections: Go through project branches
This commit is contained in:
Fabiano Fidêncio 2022-11-22 16:43:59 +01:00 committed by GitHub
commit 6f46be3f2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,8 @@ for repo in org.repositories():
(repo, start_time, end_time))
authors = AuthorSet()
for commit in repo.commits(since=start_time, until=end_time,
for branch in repo.branches():
for commit in repo.commits(sha=branch.name, since=start_time, until=end_time,
number=number):
if commit.author is None:
if commit.commit.author is None: