Tooling: update the changelog addition command. (#33628)

Update changelog addition command.
This commit is contained in:
AnnaMag 2022-07-11 12:03:03 +02:00 committed by GitHub
parent 5bb03d0188
commit 9853bd8991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ foreach ( $touched_projects as $slug => $files ) {
} elseif ( getenv( 'CI' ) ) { } elseif ( getenv( 'CI' ) ) {
printf( "---\n" ); // Bracket message containing newlines for better visibility in GH's logs. printf( "---\n" ); // Bracket message containing newlines for better visibility in GH's logs.
printf( printf(
"::error::Project %s is being changed, but no change file in %s is touched!%%0A%%0AUse `pnpm changelog --filter=%s` to add a change file.\n", "::error::Project %s is being changed, but no change file in %s is touched!%%0A%%0AUse `pnpm changelog add --filter=%s` to add a change file.\n",
$slug, $slug,
"$slug/{$changelogger_projects[ $slug ]['changes-dir']}/", "$slug/{$changelogger_projects[ $slug ]['changes-dir']}/",
$slug $slug
@ -218,7 +218,7 @@ foreach ( $touched_projects as $slug => $files ) {
} }
} }
if ( $exit && ! getenv( 'CI' ) && ! $list ) { if ( $exit && ! getenv( 'CI' ) && ! $list ) {
printf( "\e[32mUse `pnpm changelog --filter={project}` to add a change file for each project.\e[0m\n" ); printf( "\e[32mUse `pnpm changelog add --filter={project}` to add a change file for each project.\e[0m\n" );
} }
exit( $exit ); exit( $exit );