mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30:56 +01:00
Add NEEDS_REVISION support to DifferentialRevisionQuery
Reviewed by: epriestley See: https://github.com/facebook/phabricator/pull/370
This commit is contained in:
parent
1ab7622edf
commit
8b07c498d4
1 changed files with 17 additions and 8 deletions
|
@ -22,7 +22,8 @@ final class DifferentialRevisionQuery
|
|||
const STATUS_OPEN = 'status-open';
|
||||
const STATUS_ACCEPTED = 'status-accepted';
|
||||
const STATUS_NEEDS_REVIEW = 'status-needs-review';
|
||||
const STATUS_CLOSED = 'status-closed'; // NOTE: Same as 'committed'.
|
||||
const STATUS_NEEDS_REVISION = 'status-needs-revision';
|
||||
const STATUS_CLOSED = 'status-closed'; // NOTE: Same as 'committed'
|
||||
const STATUS_COMMITTED = 'status-committed'; // TODO: Remove.
|
||||
const STATUS_ABANDONED = 'status-abandoned';
|
||||
|
||||
|
@ -660,6 +661,14 @@ final class DifferentialRevisionQuery
|
|||
ArcanistDifferentialRevisionStatus::NEEDS_REVIEW,
|
||||
));
|
||||
break;
|
||||
case self::STATUS_NEEDS_REVISION:
|
||||
$where[] = qsprintf(
|
||||
$conn_r,
|
||||
'r.status IN (%Ld)',
|
||||
array(
|
||||
ArcanistDifferentialRevisionStatus::NEEDS_REVISION,
|
||||
));
|
||||
break;
|
||||
case self::STATUS_ACCEPTED:
|
||||
$where[] = qsprintf(
|
||||
$conn_r,
|
||||
|
|
Loading…
Reference in a new issue