[dev] Monorepo: improve changelogger prompts in CI. (#51995)

This commit is contained in:
Vladimir Reznichenko 2024-10-11 11:53:36 +02:00 committed by GitHub
parent a16f11ad6e
commit f469bba6f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -220,10 +220,10 @@ 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!\n\nUse `pnpm --filter=./%s changelog add` to add a change file.\n", "::error::Project %s is being changed, but no change file in %s is touched!\n\nUse `pnpm --filter='%s' changelog add` to add a change file.\n",
$slug, $slug,
"$slug/{$changelogger_projects[ $slug ]['changes-dir']}/", "$slug/{$changelogger_projects[ $slug ]['changes-dir']}/",
$slug json_decode( file_get_contents( sprintf( './%s/package.json', $slug ) ), true )['name'] ?? ( './' . $slug )
); );
printf( "---\n" ); printf( "---\n" );
$exit = 1; $exit = 1;