Skip to content

Commit ceaf676

Browse files
Fix styling
1 parent e60c775 commit ceaf676

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

packages/monorepo/src/Commands/CreateRelease.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,17 +401,19 @@ public function askForNewVersion(string $currentVersion): string
401401
public function askForUserToken(): string
402402
{
403403
$this->line("\n🔑 GitHub Release Authorship");
404-
$this->line("To appear as the author of GitHub releases, provide your personal access token.");
405-
$this->line("Leave empty to use bot token (releases will show as created by mooxbot).");
404+
$this->line('To appear as the author of GitHub releases, provide your personal access token.');
405+
$this->line('Leave empty to use bot token (releases will show as created by mooxbot).');
406406
$this->line("Token needs 'public_repo' or 'repo' scope for the target repositories.");
407-
407+
408408
$token = $this->secret('Enter your GitHub personal access token (optional):');
409-
409+
410410
if (empty($token)) {
411-
$this->line("ℹ️ Using bot token - releases will be created by mooxbot");
411+
$this->line('ℹ️ Using bot token - releases will be created by mooxbot');
412+
412413
return '';
413414
} else {
414-
$this->line("✅ Using your token - releases will show you as author");
415+
$this->line('✅ Using your token - releases will show you as author');
416+
415417
return $token;
416418
}
417419
}

packages/monorepo/src/Services/GitHubService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function getWorkflows(string $org, string $repo): ?array
7171
public function getCurrentUser(): ?array
7272
{
7373
$url = 'https://api.github.com/user';
74+
7475
return $this->fetchJson($url);
7576
}
7677

@@ -80,9 +81,9 @@ public function triggerWorkflowDispatch(string $org, string $repo, string $workf
8081

8182
// Automatically add user information to inputs
8283
$user = $this->getCurrentUser();
83-
if ($user && !isset($inputs['user_name']) && !isset($inputs['user_email'])) {
84+
if ($user && ! isset($inputs['user_name']) && ! isset($inputs['user_email'])) {
8485
$inputs['user_name'] = $user['name'] ?? $user['login'] ?? 'Unknown User';
85-
$inputs['user_email'] = $user['email'] ?? $user['login'] . '@users.noreply.github.com';
86+
$inputs['user_email'] = $user['email'] ?? $user['login'].'@users.noreply.github.com';
8687
}
8788

8889
$data = [

0 commit comments

Comments
 (0)