mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +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:
parent
79e36dc7fa
commit
e15b3dd3c6
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@ final class PhabricatorRepositoryRepositoryPHIDType
|
|||
->setFullName("{$monogram} {$name}")
|
||||
->setURI($uri)
|
||||
->setMailStampName($monogram);
|
||||
|
||||
if ($repository->getStatus() !== PhabricatorRepository::STATUS_ACTIVE) {
|
||||
$handle->setStatus(PhabricatorObjectHandle::STATUS_CLOSED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue