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)
237237 *
238238 * @param string $username the user who owns the repository
239239 * @param string $repository the name of the repository
240+ * @param string $format one of formats: "raw" or "html"
240241 *
241242 * @return array the readme content
242243 */
243- public function readme ($ username , $ repository )
244+ public function readme ($ username , $ repository, $ format = ' raw ' )
244245 {
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+ ]);
246249 }
247250
248251 /**
You can’t perform that action at this time.
0 commit comments