feat: apply label filter

pull/2/head
Aravinth Manivannan 4 months ago
parent a903044561
commit 8532043620
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
  1. 12
      accountant.py

@ -105,7 +105,17 @@ class Gitea:
page += 1
else:
break
issues[repo["name"]] = repo_issues
undisputed_issues = []
for issue in repo_issues:
is_disputed = False
for label in issue["labels"]:
if label["name"] == "Dispute":
is_disputed = True
break
if not is_disputed:
undisputed_issues.append(issue)
issues[repo["name"]] = undisputed_issues
num += len(repo_issues)
print(f"Found {num} tickets in public repositories in {self.org}")

Loading…
Cancel
Save