Differential D20239 Diff 48306 src/applications/differential/xaction/DifferentialRevisionWrongBuildsTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionWrongBuildsTransaction.php
- This file was added.
<?php | |||||
final class DifferentialRevisionWrongBuildsTransaction | |||||
extends DifferentialRevisionTransactionType { | |||||
const TRANSACTIONTYPE = 'differential.builds.wrong'; | |||||
public function generateOldValue($object) { | |||||
return null; | |||||
} | |||||
public function generateNewValue($object, $value) { | |||||
return $value; | |||||
} | |||||
public function getIcon() { | |||||
return 'fa-exclamation'; | |||||
} | |||||
public function getColor() { | |||||
return 'pink'; | |||||
} | |||||
public function getActionStrength() { | |||||
return 4; | |||||
} | |||||
public function getTitle() { | |||||
return pht( | |||||
'This revision was landed with ongoing or failed builds.'); | |||||
} | |||||
public function shouldHideForFeed() { | |||||
return true; | |||||
} | |||||
} |