Skip to content

Commit

Permalink
Change: Change package_versions back to old version
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielschowe committed Sep 18, 2024
1 parent c959798 commit 252b8ef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pontos/github/api/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async def package(

async def package_versions(
self, organization: str, package_type: PackageType, package_name: str
):
)SyncIterator[PackageVersion]:
"""
Get information about package versions
Expand Down Expand Up @@ -146,8 +146,11 @@ async def package_versions(
print(package)
"""
api = f"/orgs/{organization}/packages/{package_type}/{package_name}/versions"
package_versions = self._client.get_all(api)
return package_versions
async for response in self._client.get_all(api):
response.raise_for_status()

for version in response.json():
yield PackageVersion.from_dict(version)

async def package_version(
self,
Expand Down

0 comments on commit 252b8ef

Please sign in to comment.