Skip to content

Commit b09dc9c

Browse files
author
Joseph Perla
committedMay 18, 2013
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
1 parent d1e4048 commit b09dc9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/applications/diffusion/conduit/ConduitAPI_diffusion_getrecentcommitsbypath_Method.php

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public function defineParamTypes() {
1616
return array(
1717
'callsign' => 'required string',
1818
'path' => 'required string',
19+
'branch' => 'optional string',
1920
'limit' => 'optional int',
2021
);
2122
}
@@ -35,6 +36,7 @@ protected function execute(ConduitAPIRequest $request) {
3536
'user' => $request->getUser(),
3637
'callsign' => $request->getValue('callsign'),
3738
'path' => $request->getValue('path'),
39+
'branch' => $request->getValue('branch'),
3840
));
3941

4042
$limit = nonempty(

0 commit comments

Comments
 (0)
Failed to load comments.