Skip to content

Commit 50bd148

Browse files
authored
Merge pull request #390 from FoamyGuy/remove_hacktober_issues
Remove hacktober issues & fix docs link in list
2 parents 8efbb07 + 8fdf437 commit 50bd148

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

adabot/circuitpython_libraries.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from adabot import pypi_requests as pypi
2222
from adabot.lib import circuitpython_library_validators as cirpy_lib_vals
2323
from adabot.lib import common_funcs
24-
from adabot.lib import assign_hacktober_label as hacktober
2524
from adabot.lib import blinka_funcs
2625
from adabot.lib import bundle_announcer
2726
from adabot import circuitpython_library_download_stats as dl_stats
@@ -568,20 +567,6 @@ def print_issue_overview(*insights):
568567
len(issue_authors),
569568
)
570569

571-
# print Hacktoberfest labels changes if its Hacktober
572-
in_season, season_action = hacktober.is_hacktober_season()
573-
if in_season:
574-
hacktober_changes = ""
575-
if season_action == "add":
576-
hacktober_changes = "* Assigned Hacktoberfest label to {} issues.".format(
577-
sum([x["hacktober_assigned"] for x in insights])
578-
)
579-
elif season_action == "remove":
580-
hacktober_changes += "* Removed Hacktoberfest label from {} issues.".format(
581-
sum([x["hacktober_removed"] for x in insights])
582-
)
583-
logger.info(hacktober_changes)
584-
585570

586571
# pylint: disable=too-many-branches
587572
def main(verbose=1, output_file=None, validator=None, error_depth=5):

adabot/lib/common_funcs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ def get_docs_link(bundle_path, submodule):
220220
with open(f"{bundle_path}/{submodule[1]['path']}/README.rst", "r") as readme:
221221
lines = readme.read().split("\n")
222222
for i in range(10):
223-
if "target" in lines[i] and "readthedocs" in lines[i]:
223+
if "target" in lines[i] and (
224+
"readthedocs" in lines[i] or "docs.circuitpython.org" in lines[i]
225+
):
224226
return lines[i].replace(" :target: ", "")
225227
return None
226228
except FileNotFoundError:

0 commit comments

Comments
 (0)