Skip to content

Commit 2180ee8

Browse files
committed
2 parents 6ff8169 + 2e5df97 commit 2180ee8

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

adabot/arduino_libraries.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def is_arduino_library(repo):
8686
def print_list_output(title, coll):
8787
""
8888
output_handler()
89-
output_handler(title.format(len(coll)))
89+
output_handler(title.format(len(coll)-2))
9090
long_col = [(max([len(str(row[i])) for row in coll]) + 3)
9191
for i in range(len(coll[0]))]
9292
row_format = "".join(["{:<" + str(this_col) + "}" for this_col in long_col])
@@ -166,6 +166,12 @@ def validate_actions(repo):
166166
repo_has_actions = requests.get("https://raw.githubusercontent.com/adafruit/" + repo["name"] + "/master/.github/workflows/githubci.yml")
167167
return repo_has_actions.ok
168168

169+
def validate_actions(repo):
170+
"""Validate if a repo has actions githubci.yml
171+
"""
172+
repo_has_actions = requests.get("https://raw.githubusercontent.com/adafruit/" + repo["name"] + "/master/.github/workflows/githubci.yml")
173+
return repo_has_actions.ok
174+
169175
def validate_example(repo):
170176
"""Validate if a repo has any files in examples directory
171177
"""

adabot/circuitpython_libraries.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,12 @@ def run_library_checks(validators, bundle_submodules, latest_pylint, kw_args):
180180
output_handler()
181181
output_handler("State of CircuitPython + Libraries + Blinka")
182182

183-
output_handler("Overall")
183+
output_handler("### Overall")
184184
print_pr_overview(lib_insights, core_insights, blinka_insights)
185185
print_issue_overview(lib_insights, core_insights, blinka_insights)
186186

187187
output_handler()
188-
output_handler("Core")
188+
output_handler("### Core")
189189
print_pr_overview(core_insights)
190190
output_handler("* {} open pull requests".format(len(core_insights["open_prs"])))
191191
sorted_prs = sorted(core_insights["open_prs"],
@@ -214,7 +214,7 @@ def run_library_checks(validators, bundle_submodules, latest_pylint, kw_args):
214214
)
215215

216216
output_handler()
217-
output_handler("Libraries")
217+
output_handler("### Libraries")
218218
print_pr_overview(lib_insights)
219219
output_handler(" * Merged pull requests:")
220220
sorted_prs = sorted(lib_insights["merged_prs"],
@@ -268,7 +268,7 @@ def run_library_checks(validators, bundle_submodules, latest_pylint, kw_args):
268268
output_handler("\n".join([" * " + x for x in repos_by_error[error]]))
269269

270270
output_handler()
271-
output_handler("Blinka")
271+
output_handler("### Blinka")
272272
print_pr_overview(blinka_insights)
273273
output_handler("* {} open pull requests".format(len(blinka_insights["open_prs"])))
274274
sorted_prs = sorted(blinka_insights["open_prs"],

0 commit comments

Comments
 (0)