Skip to content

Commit

Permalink
fix for interactive mode and custom commitMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaidula committed Oct 5, 2023
1 parent 7d54a20 commit e34c38c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Actions/CodeUpAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ public function run(?string $stage = null)
// Changed files
$this->noteBlock('Uncommitted changes:' . PHP_EOL . $status);

$defaultMessage = $this->commitMessage ? $this->commitMessage : $defaultMessage;
$defaultMessage = $this->commitMessage ? $this->commitMessage : "Push latest to $upstream";
//interactive must be false for custom commit message
$defaultMessage = $this->interactive ? null : "Push latest to $upstream";
$defaultMessage = $this->interactive ? null : $defaultMessage;

if (! $msg = $this->ask(
'Enter a commit message, or leave it empty to abort the commit',
Expand Down

0 comments on commit e34c38c

Please sign in to comment.