Skip to content

Commit

Permalink
Correct copy paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-davis committed Jul 10, 2022
1 parent 38463c0 commit 6aadec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_package_versions(package_name, package_type, org):

if org:
# https://docs.github.com/en/rest/packages#list-packages-for-an-organization=
package_url = f"https://api.github.com/user/packages/orgs/{org}/packages/{package_type}/{package_name}/versions"
package_url = f"https://api.github.com/orgs/{org}/packages/{package_type}/{package_name}/versions"
else:
# https://docs.github.com/en/rest/reference/packages#get-all-package-versions-for-a-package-owned-by-the-authenticated-user
package_url = f"https://api.github.com/user/packages/{package_type}/{package_name}/versions"
Expand All @@ -35,7 +35,7 @@ def delete_package_version(package_name, package_type, id, org):

if org:
# https://docs.github.com/en/rest/packages#delete-package-version-for-an-organization=
delete_url = f"https://api.github.com/user/packages/orgs/{org}/packages/{package_type}/{package_name}/versions/{id}"
delete_url = f"https://api.github.com/orgs/{org}/packages/{package_type}/{package_name}/versions/{id}"
else:
# https://docs.github.com/en/rest/reference/packages#delete-a-package-version-for-the-authenticated-user
delete_url = f"https://api.github.com/user/packages/{package_type}/{package_name}/versions/{id}"
Expand Down

0 comments on commit 6aadec8

Please sign in to comment.