File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -237,12 +237,15 @@ public function remove($username, $repository)
237
237
*
238
238
* @param string $username the user who owns the repository
239
239
* @param string $repository the name of the repository
240
+ * @param string $format one of formats: "raw" or "html"
240
241
*
241
242
* @return array the readme content
242
243
*/
243
- public function readme ($ username , $ repository )
244
+ public function readme ($ username , $ repository, $ format = ' raw ' )
244
245
{
245
- return $ this ->get ('/repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/readme ' );
246
+ return $ this ->get ('/repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/readme ' , [], [
247
+ 'Accept ' => "application/vnd.github. $ format " ,
248
+ ]);
246
249
}
247
250
248
251
/**
You can’t perform that action at this time.
0 commit comments