Closed dhirschfeld closed 2 years ago
Calling the rest api via gh
seems to trip up on the extra slashes, even when percent encoded:
❯ gh api -X DELETE -H "Accept: application/vnd.github.v3+json" 'orgs/energy-quants/packages/container/mambaforge%2Fmambaforge%2Fpr-2'
{
"message": "Invalid request.\n\nFor 'links/2/schema', {} is not a null.",
"documentation_url": "https://docs.github.com/rest/reference/packages#delete-a-package-for-an-organization"
}
gh: Invalid request.
For 'links/2/schema', {} is not a null. (HTTP 422)
PR packages automatically deleted in https://github.com/energy-quants/mambaforge/pull/9
Still require to cleanup untagged images from the main package
Untagged images implemented (#11) https://github.com/energy-quants/mambaforge/blob/09b1dbab3b446c69245cecd99fd217815af0cec8/.github/workflows/cleanup-images.yml
https://docs.github.com/en/rest/reference/packages#delete-a-package-for-an-organization