mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-29 10:12:41 +01:00
Reuse code in close-revision workflow
Test Plan: Will test it by closing this revision. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4122
This commit is contained in:
parent
c43d627cf2
commit
65e3583235
1 changed files with 4 additions and 11 deletions
|
@ -115,17 +115,10 @@ EOTEXT
|
|||
|
||||
$actually_close = true;
|
||||
if ($is_finalize) {
|
||||
$project_id = $this->getWorkingCopy()->getProjectID();
|
||||
if ($project_id) {
|
||||
$project_info = $conduit->callMethodSynchronous(
|
||||
'arcanist.projectinfo',
|
||||
array(
|
||||
'name' => $project_id,
|
||||
));
|
||||
if ($project_info['tracked'] ||
|
||||
$revision['status'] != $status_accepted) {
|
||||
$actually_close = false;
|
||||
}
|
||||
$project_info = $this->getProjectInfo();
|
||||
if (idx($project_info, 'tracked') ||
|
||||
$revision['status'] != $status_accepted) {
|
||||
$actually_close = false;
|
||||
}
|
||||
}
|
||||
if ($actually_close) {
|
||||
|
|
Loading…
Reference in a new issue