diff --git a/src/applications/differential/query/DifferentialRevisionQuery.php b/src/applications/differential/query/DifferentialRevisionQuery.php index 17a7cf93c7..4b18259c6e 100644 --- a/src/applications/differential/query/DifferentialRevisionQuery.php +++ b/src/applications/differential/query/DifferentialRevisionQuery.php @@ -34,13 +34,14 @@ final class DifferentialRevisionQuery { private $pathIDs = array(); - private $status = 'status-any'; - const STATUS_ANY = 'status-any'; - const STATUS_OPEN = 'status-open'; - const STATUS_ACCEPTED = 'status-accepted'; - const STATUS_CLOSED = 'status-closed'; // NOTE: Same as 'committed'. - const STATUS_COMMITTED = 'status-committed'; // TODO: Remove. - const STATUS_ABANDONED = 'status-abandoned'; + private $status = 'status-any'; + const STATUS_ANY = 'status-any'; + 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_COMMITTED = 'status-committed'; // TODO: Remove. + const STATUS_ABANDONED = 'status-abandoned'; private $authors = array(); private $draftAuthors = array(); @@ -692,6 +693,14 @@ final class DifferentialRevisionQuery { ArcanistDifferentialRevisionStatus::ACCEPTED, )); break; + case self::STATUS_NEEDS_REVIEW: + $where[] = qsprintf( + $conn_r, + 'status IN (%Ld)', + array( + ArcanistDifferentialRevisionStatus::NEEDS_REVIEW, + )); + break; case self::STATUS_ACCEPTED: $where[] = qsprintf( $conn_r,