mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-03 12:12:43 +01:00
6628cd2b4f
Summary: Ref T13480. The Herald "Commit" rules still use raw commit data properties to identify authors and committers. Instead, use repository identities. Test Plan: Wrote a Herald rule using all four fields, ran it against various commits with and without known authors. Checked transcript for sensible field values. Maniphest Tasks: T13480 Differential Revision: https://secure.phabricator.com/D20955
24 lines
518 B
PHP
24 lines
518 B
PHP
<?php
|
|
|
|
final class DiffusionCommitCommitterHeraldField
|
|
extends DiffusionCommitHeraldField {
|
|
|
|
const FIELDCONST = 'diffusion.commit.committer';
|
|
|
|
public function getHeraldFieldName() {
|
|
return pht('Committer');
|
|
}
|
|
|
|
public function getHeraldFieldValue($object) {
|
|
return $this->getAdapter()->getCommitterPHID();
|
|
}
|
|
|
|
protected function getHeraldFieldStandardType() {
|
|
return self::STANDARD_PHID_NULLABLE;
|
|
}
|
|
|
|
protected function getDatasource() {
|
|
return new PhabricatorPeopleDatasource();
|
|
}
|
|
|
|
}
|