mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Specify content source for differential.close
Test Plan: $ arc close-revision 1 Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4041
This commit is contained in:
parent
210f8e0390
commit
b7e8c0a300
1 changed files with 5 additions and 0 deletions
|
@ -45,9 +45,14 @@ final class ConduitAPI_differential_close_Method
|
|||
|
||||
$revision->loadRelationships();
|
||||
|
||||
$content_source = PhabricatorContentSource::newForSource(
|
||||
PhabricatorContentSource::SOURCE_CONDUIT,
|
||||
array());
|
||||
|
||||
$editor = new DifferentialCommentEditor(
|
||||
$revision,
|
||||
DifferentialAction::ACTION_CLOSE);
|
||||
$editor->setContentSource($content_source);
|
||||
$editor->setActor($request->getUser());
|
||||
$editor->save();
|
||||
|
||||
|
|
Loading…
Reference in a new issue