Boring fixes for app sources autoupdater (#2334)
* autoupdate app sources: Stupid ad-hoc patch for focalboard where 7.11.4 doesn't have the proper asset * autoupdate app sources: add ?per_page=100 to github api release fetching for bazaar...
This commit is contained in:
parent
1562942c6a
commit
a842cd314c
2 changed files with 9 additions and 1 deletions
|
@ -331,6 +331,14 @@ class AppAutoUpdater:
|
||||||
continue
|
continue
|
||||||
tags_dict[tag_as_ints] = (tag, tag_clean)
|
tags_dict[tag_as_ints] = (tag, tag_clean)
|
||||||
|
|
||||||
|
if app_id == "focalboard":
|
||||||
|
# Stupid ad-hoc patch for focalboard where 7.11.4 doesn't have the proper asset
|
||||||
|
# because idk it was just a patch for mattermost or something
|
||||||
|
if "v7.11.4" in tags_dict:
|
||||||
|
del tags_dict["v7.11.4"]
|
||||||
|
if "7.11.4" in tags_dict:
|
||||||
|
del tags_dict["7.11.4"]
|
||||||
|
|
||||||
# sorted will sort by keys, tag_as_ints
|
# sorted will sort by keys, tag_as_ints
|
||||||
# reverse=True will set the last release as first element
|
# reverse=True will set the last release as first element
|
||||||
tags_dict = dict(sorted(tags_dict.items(), reverse=True))
|
tags_dict = dict(sorted(tags_dict.items(), reverse=True))
|
||||||
|
|
|
@ -37,7 +37,7 @@ class GithubAPI:
|
||||||
|
|
||||||
def releases(self) -> list[dict[str, Any]]:
|
def releases(self) -> list[dict[str, Any]]:
|
||||||
"""Get a list of releases for project."""
|
"""Get a list of releases for project."""
|
||||||
return self.internal_api(f"repos/{self.upstream_repo}/releases")
|
return self.internal_api(f"repos/{self.upstream_repo}/releases?per_page=100")
|
||||||
|
|
||||||
def url_for_ref(self, ref: str, ref_type: RefType) -> str:
|
def url_for_ref(self, ref: str, ref_type: RefType) -> str:
|
||||||
"""Get a URL for a ref."""
|
"""Get a URL for a ref."""
|
||||||
|
|
Loading…
Reference in a new issue