mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Save committed revision id in workflow.
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
This commit is contained in:
parent
d57ea379c6
commit
08ce2a2e2c
1 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,8 @@
|
|||
*/
|
||||
class ArcanistCommitWorkflow extends ArcanistBaseWorkflow {
|
||||
|
||||
private $revisionID;
|
||||
|
||||
public function getCommandHelp() {
|
||||
return phutil_console_format(<<<EOTEXT
|
||||
**commit** [--revision __revision_id__] [--show]
|
||||
|
@ -48,6 +50,10 @@ EOTEXT
|
|||
return true;
|
||||
}
|
||||
|
||||
public function getRevisionID() {
|
||||
return $this->revisionID;
|
||||
}
|
||||
|
||||
public function getArguments() {
|
||||
return array(
|
||||
'show' => array(
|
||||
|
@ -167,6 +173,8 @@ EOTEXT
|
|||
));
|
||||
$mark_workflow->run();
|
||||
|
||||
$this->revisionID = $revision_id;
|
||||
|
||||
return $err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue