mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 00:32:42 +01:00
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
This commit is contained in:
parent
d1e4048bfd
commit
b09dc9cad8
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ final class ConduitAPI_diffusion_getrecentcommitsbypath_Method
|
||||||
return array(
|
return array(
|
||||||
'callsign' => 'required string',
|
'callsign' => 'required string',
|
||||||
'path' => 'required string',
|
'path' => 'required string',
|
||||||
|
'branch' => 'optional string',
|
||||||
'limit' => 'optional int',
|
'limit' => 'optional int',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -35,6 +36,7 @@ final class ConduitAPI_diffusion_getrecentcommitsbypath_Method
|
||||||
'user' => $request->getUser(),
|
'user' => $request->getUser(),
|
||||||
'callsign' => $request->getValue('callsign'),
|
'callsign' => $request->getValue('callsign'),
|
||||||
'path' => $request->getValue('path'),
|
'path' => $request->getValue('path'),
|
||||||
|
'branch' => $request->getValue('branch'),
|
||||||
));
|
));
|
||||||
|
|
||||||
$limit = nonempty(
|
$limit = nonempty(
|
||||||
|
|
Loading…
Reference in a new issue