src/Robo/Commands/Deploy/DeployCommand.php
protected function getCommitMessage($options) {
    if (!$options['commit-msg']) {
      chdir($this->getConfigValue('repo.root'));
      $log = explode(' ', shell_exec("git log --oneline -1"), 2);
      $git_last_commit_message = trim($log[1]);

      return $this->askDefault('Enter a valid commit message', $git_last_commit_message);
    }
    else {
      $this->say("Commit message is set to <comment>{$options['commit-msg']}</comment>.");
      return $options['commit-msg'];
    }
  }
protected function getCommitMessage($options) {
    if (!$options['commit-msg']) {
      chdir($this->getConfigValue('repo.root'));
      $log = explode(' ', shell_exec("git log --oneline -1"), 2);
      $git_last_commit_message = trim($log[1]);

      return $this->askDefault('Enter a valid commit message', $git_last_commit_message);
    }
    else {
      $this->say("Commit message is set to <comment>{$options['commit-msg']}</comment>.");
      return $options['commit-msg'];
    }
  }
protected function getCommitMessage ( $ options ) { if ( ! $ options [ 'commit-msg' ] ) { chdir ( $ this -> getConfigValue ( 'repo.root' ) ) ; $ log = explode ( ' ' , shell_exec ( "git log --oneline -1" ) , 2 ) ; $ git_last_commit_message = trim ( $ log [ 1 ] ) ; return $ this -> askDefault ( 'Enter a valid commit message' , $ git_last_commit_message ) ; } else { $ this -> say ( "Commit message is set to <comment>{$options['commit-msg']}</comment>." ) ; return $ options [ 'commit-msg' ] ; } }
Gets the commit message to be used for committing deployment artifact.

Defaults to the last commit message on the source branch.

@return string
The commit message.
Gets the commit message to be used for committing deployment artifact .