1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 02:02:41 +01:00

Support postponed lint status in creatediff conduit call

Test Plan:
Created diff with a postponed linter and the lint status set to such
via arcanist.  Verified lint status showed as postponed in diff view.

Reviewers: epriestley, vrana

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T1332

Differential Revision: https://secure.phabricator.com/D2932
This commit is contained in:
Andrew Gallagher 2012-07-05 19:39:30 -07:00
parent 176b4a68a8
commit eac8e0e7f3

View file

@ -41,9 +41,9 @@ final class ConduitAPI_differential_creatediff_Method extends ConduitAPIMethod {
'arcanistProject' => 'optional string', 'arcanistProject' => 'optional string',
'repositoryUUID' => 'optional string', 'repositoryUUID' => 'optional string',
'lintStatus' => 'lintStatus' =>
'required enum<none, skip, okay, warn, fail>', 'required enum<none, skip, okay, warn, fail, postponed>',
'unitStatus' => 'unitStatus' =>
'required enum<none, skip, okay, warn, fail>', 'required enum<none, skip, okay, warn, fail, postponed>',
); );
} }
@ -121,6 +121,9 @@ final class ConduitAPI_differential_creatediff_Method extends ConduitAPIMethod {
case 'fail': case 'fail':
$diff->setLintStatus(DifferentialLintStatus::LINT_FAIL); $diff->setLintStatus(DifferentialLintStatus::LINT_FAIL);
break; break;
case 'postponed':
$diff->setLintStatus(DifferentialLintStatus::LINT_POSTPONED);
break;
case 'none': case 'none':
default: default:
$diff->setLintStatus(DifferentialLintStatus::LINT_NONE); $diff->setLintStatus(DifferentialLintStatus::LINT_NONE);