Skip to content

Commit 056486a

Browse files
committed
Fix internal command method name
1 parent 8850c48 commit 056486a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

monorepo/DevTools/src/MonorepoReleaseCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function fetchAndCheckoutMaster(): void
9999

100100
// $this->info('Checking that the working directory is clean...');
101101
if ($this->runUnlessDryRun('git status --porcelain', true)) {
102-
$this->fail('Working directory is not clean, aborting.');
102+
$this->failCommand('Working directory is not clean, aborting.');
103103
}
104104

105105
$this->exitIfFailed();
@@ -163,14 +163,14 @@ protected function runUnlessDryRun(string $command, bool $allowSilent = false):
163163

164164
if ($allowSilent === false) {
165165
if ($state === false || ($state === null)) {
166-
$this->fail("Command failed: $command");
166+
$this->failCommand("Command failed: $command");
167167
}
168168
}
169169

170170
return $state;
171171
}
172172

173-
protected function fail(string $message): void
173+
protected function failCommand(string $message): void
174174
{
175175
$this->newLine();
176176
$this->error($message);
@@ -437,7 +437,7 @@ protected function createNewBranch(): void
437437
$state = $this->runUnlessDryRun('git branch --show-current');
438438

439439
if ($this->dryRun !== true && trim($state ?? '') !== $name) {
440-
$this->fail("Failed to checkout new branch $name, aborting.");
440+
$this->failCommand("Failed to checkout new branch $name, aborting.");
441441
}
442442

443443
$this->exitIfFailed();
@@ -446,7 +446,7 @@ protected function createNewBranch(): void
446446
$state = $this->runUnlessDryRun('git push origin '.$name, true);
447447

448448
if ($this->dryRun !== true && $state === false) {
449-
$this->fail("Failed to push new branch $name to origin, aborting.");
449+
$this->failCommand("Failed to push new branch $name to origin, aborting.");
450450
}
451451

452452
$this->exitIfFailed();

0 commit comments

Comments
 (0)