Skip to content

Commit

Permalink
Merge pull request #390 from FoamyGuy/remove_hacktober_issues
Browse files Browse the repository at this point in the history
Remove hacktober issues & fix docs link in list
  • Loading branch information
FoamyGuy authored Nov 13, 2024
2 parents 8efbb07 + 8fdf437 commit 50bd148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
15 changes: 0 additions & 15 deletions adabot/circuitpython_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from adabot import pypi_requests as pypi
from adabot.lib import circuitpython_library_validators as cirpy_lib_vals
from adabot.lib import common_funcs
from adabot.lib import assign_hacktober_label as hacktober
from adabot.lib import blinka_funcs
from adabot.lib import bundle_announcer
from adabot import circuitpython_library_download_stats as dl_stats
Expand Down Expand Up @@ -568,20 +567,6 @@ def print_issue_overview(*insights):
len(issue_authors),
)

# print Hacktoberfest labels changes if its Hacktober
in_season, season_action = hacktober.is_hacktober_season()
if in_season:
hacktober_changes = ""
if season_action == "add":
hacktober_changes = "* Assigned Hacktoberfest label to {} issues.".format(
sum([x["hacktober_assigned"] for x in insights])
)
elif season_action == "remove":
hacktober_changes += "* Removed Hacktoberfest label from {} issues.".format(
sum([x["hacktober_removed"] for x in insights])
)
logger.info(hacktober_changes)


# pylint: disable=too-many-branches
def main(verbose=1, output_file=None, validator=None, error_depth=5):
Expand Down
4 changes: 3 additions & 1 deletion adabot/lib/common_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ def get_docs_link(bundle_path, submodule):
with open(f"{bundle_path}/{submodule[1]['path']}/README.rst", "r") as readme:
lines = readme.read().split("\n")
for i in range(10):
if "target" in lines[i] and "readthedocs" in lines[i]:
if "target" in lines[i] and (
"readthedocs" in lines[i] or "docs.circuitpython.org" in lines[i]
):
return lines[i].replace(" :target: ", "")
return None
except FileNotFoundError:
Expand Down

0 comments on commit 50bd148

Please sign in to comment.