mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-21 22:32:41 +01:00
Expose diff IDs to post-diff workflows.
Summary: Test Plan: Reviewers: CC:
This commit is contained in:
parent
746768e779
commit
adef7d4975
1 changed files with 7 additions and 0 deletions
|
@ -21,6 +21,7 @@ class ArcanistDiffWorkflow extends ArcanistBaseWorkflow {
|
|||
private $hasWarnedExternals = false;
|
||||
private $unresolvedLint;
|
||||
private $unresolvedTests;
|
||||
private $diffID;
|
||||
|
||||
public function getCommandHelp() {
|
||||
return phutil_console_format(<<<EOTEXT
|
||||
|
@ -55,6 +56,10 @@ EOTEXT
|
|||
public function requiresRepositoryAPI() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getDiffID() {
|
||||
return $this->diffID;
|
||||
}
|
||||
|
||||
public function getArguments() {
|
||||
return array(
|
||||
|
@ -340,6 +345,8 @@ EOTEXT
|
|||
foreach ($changes as $change) {
|
||||
echo ' '.$change->renderTextSummary()."\n";
|
||||
}
|
||||
|
||||
$this->diffID = $diff_info['diffid'];
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue