mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 13:30:55 +01:00
Hide harbormaster build passes in feed
Summary: These stories/notifications aren't too useful, just turn them off at least for now. Test Plan: Will vet this in a sec... Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D8899
This commit is contained in:
parent
db42aae361
commit
f32971cf81
1 changed files with 9 additions and 0 deletions
|
@ -451,6 +451,15 @@ abstract class PhabricatorApplicationTransaction
|
||||||
switch ($this->getTransactionType()) {
|
switch ($this->getTransactionType()) {
|
||||||
case PhabricatorTransactions::TYPE_TOKEN:
|
case PhabricatorTransactions::TYPE_TOKEN:
|
||||||
return true;
|
return true;
|
||||||
|
case PhabricatorTransactions::TYPE_BUILDABLE:
|
||||||
|
switch ($this->getNewValue()) {
|
||||||
|
case HarbormasterBuildable::STATUS_PASSED:
|
||||||
|
// For now, don't notify on build passes either. These are pretty
|
||||||
|
// high volume and annoying, with very little present value. We
|
||||||
|
// might want to turn them back on in the specific case of
|
||||||
|
// build successes on the current document?
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->shouldHide();
|
return $this->shouldHide();
|
||||||
|
|
Loading…
Reference in a new issue