Skip to content

Commit 1ac1492

Browse files
committed
Now catches all good first issues
1 parent 50ada80 commit 1ac1492

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

adabot/lib/circuitpython_library_validators.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -909,10 +909,7 @@ def gather_insights(self, repo, insights, since, show_closed_metric=False):
909909
insights["new_issues"] += 1
910910
insights["issue_authors"].add(issue_info["user"]["login"])
911911
insights["active_issues"] += 1
912-
if issue["labels"]:
913-
for i in issue["labels"]:
914-
if i["name"] == 'good first issue':
915-
insights["good_first_issues"] += 1
912+
916913
else:
917914
insights["closed_issues"] += 1
918915
insights["issue_closers"].add(issue_info["closed_by"]["login"])
@@ -958,6 +955,10 @@ def gather_insights(self, repo, insights, since, show_closed_metric=False):
958955
issue_link = "{0} (Open {1} days)".format(issue["html_url"],
959956
days_open.days)
960957
insights["open_issues"].append(issue_link)
958+
if "labels" in issue:
959+
for i in issue["labels"]:
960+
if i["name"] == 'good first issue':
961+
insights["good_first_issues"] += 1
961962

962963
# process Hacktoberfest labels if it is Hacktoberfest season
963964
in_season, season_action = hacktober.is_hacktober_season()

0 commit comments

Comments
 (0)