Skip to content

Commit baf73bf

Browse files
committed
Update format to match the Adafruit Bundle names
1 parent daa6b59 commit baf73bf

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

adabot/lib/community_bundle_announcer.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,17 @@ def get_community_bundle_updates() -> Tuple[Set[RepoResult], Set[RepoResult]]:
5656
x.strip(",") for x in relevant_line.split(" ")[2:]
5757
]
5858
for lib in lib_components:
59-
comps = parse.parse("[{name:S}]({link:S})", lib)
60-
link: str = parse.search("{repo:S}/releases", comps["link"])[
61-
"repo"
62-
]
63-
update_set = (
64-
updated_libs
65-
if relevant_line.startswith("Updated libraries")
66-
else new_libs
67-
)
68-
update_set.add((comps["name"], link))
59+
comps = parse.parse("[{name:S}]({link_comp:S})", lib)
60+
link: str = parse.search(
61+
"{link:S}/releases", comps["link_comp"]
62+
)["link"]
63+
full_name = parse.search(
64+
"https://github.com/{full_name:S}", link
65+
)["full_name"]
66+
if relevant_line.startswith("Updated libraries"):
67+
updated_libs.add((full_name, link))
68+
else:
69+
new_libs.add((full_name, link))
6970
return (new_libs, updated_libs)
7071

7172
except pygithub.RateLimitExceededException:

0 commit comments

Comments
 (0)