@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

Add branch as an option to recentcommitsbypath API

Summary: We need to be able to request history for more than the master branch (the default). This adds branch as an option to the API.

Test Plan: Test by sending recentcommitsbypath a non-master branch along with callsign.

Reviewers: epriestley, chad, btrahan

Reviewed By: epriestley

CC: aran, Korvin

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

+2
+2
src/applications/diffusion/conduit/ConduitAPI_diffusion_getrecentcommitsbypath_Method.php
··· 16 16 return array( 17 17 'callsign' => 'required string', 18 18 'path' => 'required string', 19 + 'branch' => 'optional string', 19 20 'limit' => 'optional int', 20 21 ); 21 22 } ··· 35 36 'user' => $request->getUser(), 36 37 'callsign' => $request->getValue('callsign'), 37 38 'path' => $request->getValue('path'), 39 + 'branch' => $request->getValue('branch'), 38 40 )); 39 41 40 42 $limit = nonempty(