Summary:
Save commited revision id in workflow, so it can be used in Arcanist
didRunWorkflow hook.
Test Plan:
Running getRevisionID on the workflow should return id of the committed
revision.
Reviewers: epriestley, jungejason
Reviewed By: epriestley
CC: aran, epriestley, mareksapota
Differential Revision: 1078
*/
class ArcanistCommitWorkflow extends ArcanistBaseWorkflow {
+ private $revisionID;
+
public function getCommandHelp() {
return phutil_console_format(<<<EOTEXT
**commit** [--revision __revision_id__] [--show]
return true;
}
+ public function getRevisionID() {
+ return $this->revisionID;
+ }
+
public function getArguments() {
return array(
'show' => array(
));
$mark_workflow->run();
+ $this->revisionID = $revision_id;
+
return $err;
}