|
|
@ -77,7 +77,7 @@ class Release(Validateable):
|
|
|
|
result += self.release_secondary_build_files
|
|
|
|
result += self.release_secondary_build_files
|
|
|
|
return result
|
|
|
|
return result
|
|
|
|
|
|
|
|
|
|
|
|
def forgejo_release_api_endpoint(self):
|
|
|
|
def forgejo_release_api_endpoint(self) -> str:
|
|
|
|
validation = self.validate_for_artifact()
|
|
|
|
validation = self.validate_for_artifact()
|
|
|
|
if validation != []:
|
|
|
|
if validation != []:
|
|
|
|
raise RuntimeError(f"not valid for creating artifacts: {validation}")
|
|
|
|
raise RuntimeError(f"not valid for creating artifacts: {validation}")
|
|
|
@ -89,6 +89,9 @@ class Release(Validateable):
|
|
|
|
repository = self.release_repository_name.removeprefix("/").removesuffix("/")
|
|
|
|
repository = self.release_repository_name.removeprefix("/").removesuffix("/")
|
|
|
|
return f"{server_url}/api/v1/repos/{organisation}/{repository}/releases"
|
|
|
|
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"
|
|
|
|
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
@classmethod
|
|
|
|
def get_mapping_default(cls) -> List[Dict[str, str]]:
|
|
|
|
def get_mapping_default(cls) -> List[Dict[str, str]]:
|
|
|
|
return [
|
|
|
|
return [
|
|
|
|