Skip to content

Commit fe884fe

Browse files
committed
Remove transitional code
1 parent c4c4710 commit fe884fe

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

utils/maintenance/Contrib_List_Command.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,13 @@ public function __invoke( $_, $assoc_args ) {
5959
}
6060

6161
// Identify all command dependencies and their contributors
62-
63-
// TODO: Bundle repo needs to be switched to `wp-cli/wp-cli-bundle` for next release.
64-
$bundle = 'wp-cli/wp-cli';
62+
$bundle = 'wp-cli/wp-cli-bundle';
6563

6664
$milestones = GitHub::get_project_milestones( 'wp-cli/wp-cli', [ 'state' => 'closed' ] );
6765
// Cheap way to get the latest closed milestone
6866
$milestone = array_shift( $milestones );
6967
$tag = is_object( $milestone ) ? "v{$milestone->title}" : 'master';
7068

71-
// TODO: Only needed for switch from v1 to v2.
72-
if ( 'wp-cli/wp-cli' === $bundle ) {
73-
$tag = 'v1.5.1';
74-
}
75-
7669
$composer_lock_url = sprintf( 'https://raw.githubusercontent.com/%s/%s/composer.lock', $bundle, $tag );
7770
WP_CLI::log( 'Fetching ' . $composer_lock_url );
7871
$response = Utils\http_request( 'GET', $composer_lock_url );
@@ -81,11 +74,6 @@ public function __invoke( $_, $assoc_args ) {
8174
}
8275
$composer_json = json_decode( $response->body, true );
8376

84-
// TODO: Only need for initial v2.
85-
$composer_json['packages'][] = [
86-
'name' => 'wp-cli/i18n-command',
87-
'version' => 'v2',
88-
];
8977
usort(
9078
$composer_json['packages'],
9179
function ( $a, $b ) {

utils/maintenance/Release_Notes_Command.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ private function get_bundle_release_notes( $source, $format ) {
114114

115115
// Identify all command dependencies and their release notes
116116

117-
// TODO: Bundle repo needs to be switched to `wp-cli/wp-cli-bundle` for next release.
118-
$bundle = 'wp-cli/wp-cli';
117+
$bundle = 'wp-cli/wp-cli-bundle';
119118

120119
$milestones = GitHub::get_project_milestones(
121120
'wp-cli/wp-cli',
@@ -125,11 +124,6 @@ private function get_bundle_release_notes( $source, $format ) {
125124
$milestone = array_shift( $milestones );
126125
$tag = is_object( $milestone ) ? "v{$milestone->title}" : 'master';
127126

128-
// TODO: Only needed for switch from v1 to v2.
129-
if ( 'wp-cli/wp-cli' === $bundle ) {
130-
$tag = 'v1.5.1';
131-
}
132-
133127
$composer_lock_url = sprintf(
134128
'https://raw.githubusercontent.com/%s/%s/composer.lock',
135129
$bundle,
@@ -146,11 +140,6 @@ private function get_bundle_release_notes( $source, $format ) {
146140
}
147141
$composer_json = json_decode( $response->body, true );
148142

149-
// TODO: Only need for initial v2.
150-
$composer_json['packages'][] = [
151-
'name' => 'wp-cli/i18n-command',
152-
'version' => 'v2',
153-
];
154143
usort(
155144
$composer_json['packages'],
156145
function ( $a, $b ) {

0 commit comments

Comments
 (0)