mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 08:52:39 +01:00
Pass the constructed message to the TYPE_DIFF_DIDBUILDMESSAGE event.
Summary: We want to use TYPE_DIFF_DIDBUILDMESSAGE to abort arc diff when a message doesn't fit some Test Plan: Created an EventListener subscribed to TYPE_DIFF_DIDBUILDMESSAGE, validated the 'message' field was filled in Reviewers: vrana, epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D4361
This commit is contained in:
parent
48f5ecb05c
commit
7547ef7e96
1 changed files with 4 additions and 1 deletions
|
@ -428,7 +428,10 @@ EOTEXT
|
|||
|
||||
$this->dispatchEvent(
|
||||
ArcanistEventType::TYPE_DIFF_DIDBUILDMESSAGE,
|
||||
array());
|
||||
array(
|
||||
'message' => $commit_message
|
||||
)
|
||||
);
|
||||
|
||||
if (!$this->shouldOnlyCreateDiff()) {
|
||||
$revision = $this->buildRevisionFromCommitMessage($commit_message);
|
||||
|
|
Loading…
Reference in a new issue