mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42: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:
parent
176b4a68a8
commit
eac8e0e7f3
1 changed files with 5 additions and 2 deletions
|
@ -41,9 +41,9 @@ final class ConduitAPI_differential_creatediff_Method extends ConduitAPIMethod {
|
|||
'arcanistProject' => 'optional string',
|
||||
'repositoryUUID' => 'optional string',
|
||||
'lintStatus' =>
|
||||
'required enum<none, skip, okay, warn, fail>',
|
||||
'required enum<none, skip, okay, warn, fail, postponed>',
|
||||
'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':
|
||||
$diff->setLintStatus(DifferentialLintStatus::LINT_FAIL);
|
||||
break;
|
||||
case 'postponed':
|
||||
$diff->setLintStatus(DifferentialLintStatus::LINT_POSTPONED);
|
||||
break;
|
||||
case 'none':
|
||||
default:
|
||||
$diff->setLintStatus(DifferentialLintStatus::LINT_NONE);
|
||||
|
|
Loading…
Reference in a new issue