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

When a repository is inactive, mark its handle as "closed"

Summary: See downstream <https://phabricator.wikimedia.org/T182232>. We currently don't mark repository handles as closed.

Test Plan: Mentioned two repositories with `R1` (active) and `R2` (inactive). After patch, saw `R2` visually indicated as closed/inactive.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20309
This commit is contained in:
epriestley 2019-03-22 09:06:10 -07:00
parent 79e36dc7fa
commit e15b3dd3c6

View file

@ -46,6 +46,10 @@ final class PhabricatorRepositoryRepositoryPHIDType
->setFullName("{$monogram} {$name}") ->setFullName("{$monogram} {$name}")
->setURI($uri) ->setURI($uri)
->setMailStampName($monogram); ->setMailStampName($monogram);
if ($repository->getStatus() !== PhabricatorRepository::STATUS_ACTIVE) {
$handle->setStatus(PhabricatorObjectHandle::STATUS_CLOSED);
}
} }
} }