diff --git a/src/applications/herald/adapter/HeraldAdapter.php b/src/applications/herald/adapter/HeraldAdapter.php index eb8f34a565..142119c7c5 100644 --- a/src/applications/herald/adapter/HeraldAdapter.php +++ b/src/applications/herald/adapter/HeraldAdapter.php @@ -10,6 +10,7 @@ abstract class HeraldAdapter { const FIELD_AUTHOR = 'author'; const FIELD_REVIEWER = 'reviewer'; const FIELD_REVIEWERS = 'reviewers'; + const FIELD_COMMITTER = 'committer'; const FIELD_CC = 'cc'; const FIELD_TAGS = 'tags'; const FIELD_DIFF_FILE = 'diff-file'; @@ -95,6 +96,7 @@ abstract class HeraldAdapter { self::FIELD_TITLE => pht('Title'), self::FIELD_BODY => pht('Body'), self::FIELD_AUTHOR => pht('Author'), + self::FIELD_COMMITTER => pht('Committer'), self::FIELD_REVIEWER => pht('Reviewer'), self::FIELD_REVIEWERS => pht('Reviewers'), self::FIELD_CC => pht('CCs'), @@ -147,6 +149,7 @@ abstract class HeraldAdapter { self::CONDITION_REGEXP, ); case self::FIELD_AUTHOR: + case self::FIELD_COMMITTER: case self::FIELD_REPOSITORY: case self::FIELD_REVIEWER: return array( diff --git a/src/applications/herald/adapter/HeraldCommitAdapter.php b/src/applications/herald/adapter/HeraldCommitAdapter.php index 365e62e2d7..5f65532499 100644 --- a/src/applications/herald/adapter/HeraldCommitAdapter.php +++ b/src/applications/herald/adapter/HeraldCommitAdapter.php @@ -52,6 +52,7 @@ final class HeraldCommitAdapter extends HeraldAdapter { return array( self::FIELD_BODY, self::FIELD_AUTHOR, + self::FIELD_COMMITTER, self::FIELD_REVIEWER, self::FIELD_REPOSITORY, self::FIELD_DIFF_FILE, @@ -241,6 +242,8 @@ final class HeraldCommitAdapter extends HeraldAdapter { return $data->getCommitMessage(); case self::FIELD_AUTHOR: return $data->getCommitDetail('authorPHID'); + case self::FIELD_COMMITTER: + return $data->getCommitDetail('committerPHID'); case self::FIELD_REVIEWER: return $data->getCommitDetail('reviewerPHID'); case self::FIELD_DIFF_FILE: