Repository navigation
Conversation
Adds $github->packages covering all non-deprecated operations of the GitHub Packages REST API: packages and package versions owned by an organization, a user or the authenticated user (list, get, delete, restore) and the Docker migration conflict lists, with tests and docs/github-packages.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Part of bringing
joomla/githubup to the current GitHub REST API (phases 1–3 of the modernisation plan). Purely additive: no existing method changes signature or behaviour.Adds
$github->packages(Package\Packages, 27 methods): list, get, delete, restore, versions and Docker conflicts, each for organisations, users and the authenticated user.Notes for review
rawurlencode()d, so container names with/work.docs/github-packages.mdbecause [4.x] Update documentation #66 adds adocs/packages.mddescribing the library's own packages.statefilter, unlike the other scopes.How it was built
Generated from GitHub's official OpenAPI description (
github/rest-api-description,api.github.com). Every non-deprecated operation of the category is covered;/enterprises/*endpoints are left out, as the library targets github.com.Conventions shared by all package PRs: path parameters first, then required body fields, then
array $options(optional body fields),array $filters(optional query parameters) and$page, $limitfor paginated endpoints; free-form path segments arerawurlencode()d;create-or-updateoperations are calledcreateOrUpdate…; 204 responses return nothing, 302 downloads return theLocationURL, "check" endpoints return a boolean.Testing Instructions
vendor/bin/phpunit: every new method has a success test (HTTP verb, exact URL and query, exact JSON body, return value) and a failure test.phpcsandphpstanreport no errors.54 new tests.
Documentation Changes Required
Adds
docs/github-packages.md. The@property-readline inGithub.phpand the link fromdocs/index.mdare added together for all new packages in #67, to keep these PRs from conflicting with each other.🤖 Generated with Claude Code