Rename var

This commit is contained in:
erik 2023-08-16 12:09:06 +02:00
parent dea2d7f3ed
commit 46c8a1751c

View file

@ -93,8 +93,8 @@ class Release(Validateable):
repository = self.release_repository_name.removeprefix("/").removesuffix("/")
return f"{server_url}/api/v1/repos/{organisation}/{repository}/releases"
def forgejo_release_asset_api_endpoint(self, id: int) -> str:
return f"{self.forgejo_release_api_endpoint()}/{id}/assets"
def forgejo_release_asset_api_endpoint(self, release_id: int) -> str:
return f"{self.forgejo_release_api_endpoint()}/{release_id}/assets"
@classmethod
def get_mapping_default(cls) -> List[Dict[str, str]]: