Skip to content

Commit 92f3902

Browse files
committed
Add GitHub default account
1 parent 2ab9d44 commit 92f3902

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Command/Markdown/GeneratorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ private function isValidUrl(string $url): bool
234234

235235
private function promptGithub(SymfonyStyle $io): string
236236
{
237-
$github = $io->ask('GitHub Username (github.com/<username>)');
237+
$github = $io->ask('GitHub Username (github.com/<username>)', DefaultValue::GITHUB);
238238

239239
if (!$this->isFieldFilled($github)) {
240240
throw new EmptyFieldException('GitHub nickname is required.');

src/DefaultValue.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ final class DefaultValue
1212
{
1313
public const AUTHOR = 'Pierre-Henry Soria';
1414
public const EMAIL = 'hi@ph7.me';
15+
public const GITHUB = 'pH-7';
1516
public const LICENSE_CODE = License::MIT_CODE;
1617
public const DESTINATION_FILE = ROOT_DIR . '/tmp';
1718
public const GRAVATAR_SIZE = 200;

0 commit comments

Comments
 (0)