$IOHelper->
success('The changelog was generated successfully'
);
$IOHelper->
note($target);
return self::SUCCESS;
} /**
* @return array{date: string, author: string, authorEmail: string, authorGithub: string}
*/
private function getDefaultData(): array
{ $process =
new Process(['git', 'config', 'user.name'
]);
$process->
run();
$gitUser =
trim($process->
getOutput());
$process =
new Process(['git', 'config', 'user.email'
]);
$process->
run();
$gitEmail =
trim($process->
getOutput());
return [ 'date'
=> (new \
DateTime())->
setTimezone(new \
DateTimeZone('UTC'
))->
format('Y-m-d'
),
'author' =>
$gitUser,
'authorEmail' =>
$gitEmail,