Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GitHub release installation #421

Merged

Conversation

tfirdaus
Copy link
Contributor

Related to #91 and resuming #386.

@tfirdaus tfirdaus requested a review from a team as a code owner April 26, 2024 16:39
Comment on lines 829 to 831
if ( wp_remote_retrieve_response_code( $response ) === \WP_Http::FORBIDDEN ) {
return new \WP_Error(
\WP_Http::FORBIDDEN,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like WP_Http::FORBIDDEN doesn't exist yet on WordPress 3.7, see https://github.com/wp-cli/extension-command/actions/runs/8851555744/job/24308388075?pr=421#step:11:67

I suppose we can just hardcode 403 here, maybe adding an explanatory comment

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed up in fc16a6a

Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @tfirdaus !

@danielbachhuber danielbachhuber merged commit 617e9c5 into wp-cli:main Apr 27, 2024
38 checks passed
@tfirdaus tfirdaus deleted the add/add-support-for-github-latest branch April 27, 2024 09:39
baizmandesign pushed a commit to baizmandesign/extension-command that referenced this pull request May 7, 2024
---------

Co-authored-by: Bogdan Ungureanu <bogdanungureanu21@gmail.com>
Co-authored-by: Daniel Bachhuber <daniel.bachhuber@automattic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment