mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
Prompt user for commit message when auto-committing
See: <https://github.com/facebook/arcanist/pull/137> Reviewed by: epriestley
This commit is contained in:
parent
d62bd48a81
commit
7ce0c8e84e
1 changed files with 5 additions and 1 deletions
|
@ -908,7 +908,11 @@ abstract class ArcanistBaseWorkflow extends Phobject {
|
|||
$commit = head($api->getLocalCommitInformation());
|
||||
$api->amendCommit($commit['message']);
|
||||
} else if ($api->supportsLocalCommits()) {
|
||||
$api->doCommit(self::AUTO_COMMIT_TITLE);
|
||||
$commit_message = phutil_console_prompt("Enter commit message:");
|
||||
if ($commit_message == '') {
|
||||
$commit_message = self::AUTO_COMMIT_TITLE;
|
||||
}
|
||||
$api->doCommit($commit_message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue