wp-cli / extension-command

Manages plugins and themes, including installs, activations, and updates.
MIT License
87 stars 82 forks source link

Add `--minor` and `--patch` to `wp theme update` #394

Closed MoBlockbuster closed 5 months ago

MoBlockbuster commented 8 months ago

the wpcli tool has the possibility to run a patchlevel update for plugins (--patch):

https://developer.wordpress.org/cli/commands/plugin/update/

It would be very helpful to run the same patchlevelupdate for the themes and the wp core.

There is no parameter for the patchlevelupdate (--patch):

https://developer.wordpress.org/cli/commands/theme/update/ https://developer.wordpress.org/cli/commands/core/update/

It would be also nice, if there a minorlevelupdate for themes (--minor).

chesio commented 8 months ago

Hi @MoBlockbuster,

for core it's already possible: the --patch argument for wp plugin update works the same way as --minor argument for wp core update. See the description in link you provided.

The reason for this confusion is that WordPress version numbering is different from semantic version numbering - see: https://make.wordpress.org/core/handbook/about/release-cycle/version-numbering/

MoBlockbuster commented 8 months ago

hi @chesio thanks for the information. then this function is only missing for the themeupdate

danielbachhuber commented 8 months ago

We can add --minor and --patch arguments to wp theme update.

Feel free to submit a pull request, if you'd like. Here is some guidance on our pull request best practices.

up1512001 commented 6 months ago

Hi @danielbachhuber I want to create PR for this issue if it's not already resolved, can you please guide me?

danielbachhuber commented 6 months ago

@up1512001 It's not already resolved, no. What do you need guidance on?

up1512001 commented 6 months ago

@up1512001 It's not already resolved, no. What do you need guidance on?

I am new to WP-CLI contribution so can you please tell me how should I approach this issue?

danielbachhuber commented 6 months ago

@up1512001 Please review the handbook and codebase to get acquainted. You're also welcome to stop by the #cli channel on WordPress.org Slack if you have specific questions.