refactor: update remote tag fetching behaviour so it uses api instead of shallow clone
This commit is contained in:
@@ -63,5 +63,8 @@ class GithubRemoteAPI(RemoteAPI):
|
||||
for c in reversed(items)
|
||||
]
|
||||
|
||||
def list_tags(self, suffix: str = "") -> list[str]:
|
||||
return [t["name"] for t in self.get_all_pages(self.get_endpoint("/tags"), 100)]
|
||||
|
||||
def get_endpoint(self, resource: str) -> str:
|
||||
return f"{GithubRemoteAPI.API_ENDPOINT}/{self.repository}{resource}"
|
||||
|
||||
Reference in New Issue
Block a user