@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a differential.abandon Conduit method.

Summary:
Brazenly copied from differential.close. Ulterior motive
is to be able to automate discarding of useless commits from
arcanist testing.

Test Plan:
Called method in phabricator sandbox. Revisions were
successfully abandoned.

Reviewers: epriestley

Reviewed By: epriestley

CC: nh, aran, Korvin

Differential Revision: https://secure.phabricator.com/D2928

+8 -2
+8 -2
src/applications/conduit/method/differential/ConduitAPI_differential_createcomment_Method.php
··· 29 29 public function defineParamTypes() { 30 30 return array( 31 31 'revision_id' => 'required revisionid', 32 - 'message' => 'required string', 32 + 'message' => 'optional string', 33 + 'action' => 'optional string', 33 34 ); 34 35 } 35 36 ··· 54 55 PhabricatorContentSource::SOURCE_CONDUIT, 55 56 array()); 56 57 58 + $action = $request->getValue('action'); 59 + if (!$action) { 60 + $action = 'none'; 61 + } 62 + 57 63 $editor = new DifferentialCommentEditor( 58 64 $revision, 59 65 $request->getUser()->getPHID(), 60 - DifferentialAction::ACTION_COMMENT); 66 + $action); 61 67 $editor->setContentSource($content_source); 62 68 $editor->setMessage($request->getValue('message')); 63 69 $editor->save();