mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
Declare that revision was closed by committer, not author
Summary: D2703#13 is confusing - it looks like that @allenjohnashton took the action but it was @epriestley. Test Plan: I don't have a repro so I tested this block standalone. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D2707
This commit is contained in:
parent
dd2b027905
commit
a0b57cefb7
1 changed files with 8 additions and 2 deletions
|
@ -98,10 +98,16 @@ abstract class PhabricatorRepositoryCommitMessageParserWorker
|
|||
$commit_is_new = $conn_w->getAffectedRows();
|
||||
|
||||
$message = null;
|
||||
$committer = $data->getCommitDetail('authorPHID');
|
||||
$name = $data->getCommitDetail('committer');
|
||||
if ($name !== null) {
|
||||
$committer = $data->getCommitDetail('committerPHID');
|
||||
} else {
|
||||
$committer = $data->getCommitDetail('authorPHID');
|
||||
$name = $data->getAuthorName();
|
||||
}
|
||||
if (!$committer) {
|
||||
$committer = $revision->getAuthorPHID();
|
||||
$message = 'Closed by '.$data->getAuthorName().'.';
|
||||
$message = 'Closed by '.$name.'.';
|
||||
}
|
||||
|
||||
if ($commit_is_new) {
|
||||
|
|
Loading…
Reference in a new issue