mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 08:12:40 +01:00
98ac0a022c
Summary: Ref T8726. Test Plan: Created a giant rule with every commit field: {F594686} Ran the upgrade, got the same rule with new fields: {F594688} Used "Test Console" to run transcripts, saw all the fields populate correctly. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T8726 Differential Revision: https://secure.phabricator.com/D13567
24 lines
538 B
PHP
24 lines
538 B
PHP
<?php
|
|
|
|
final class DiffusionCommitAffectedFilesHeraldField
|
|
extends DiffusionCommitHeraldField {
|
|
|
|
const FIELDCONST = 'diffusion.commit.affected';
|
|
|
|
public function getHeraldFieldName() {
|
|
return pht('Affected files');
|
|
}
|
|
|
|
public function getHeraldFieldValue($object) {
|
|
return $this->getAdapter()->loadAffectedPaths();
|
|
}
|
|
|
|
protected function getHeraldFieldStandardConditions() {
|
|
return self::STANDARD_TEXT_LIST;
|
|
}
|
|
|
|
public function getHeraldFieldValueType($condition) {
|
|
return HeraldAdapter::VALUE_TEXT;
|
|
}
|
|
|
|
}
|