File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,20 @@ public function remove($username, $repository)
143143 {
144144 return $ this ->delete ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ));
145145 }
146+
147+ /**
148+ * Get the readme content for a repository by its username and repository name
149+ * @link http://developer.github.com/v3/repos/contents/#get-the-readme
150+ *
151+ * @param string $username the user who owns the repository
152+ * @param string $repository the name of the repository
153+ *
154+ * @return array the readme content
155+ */
156+ public function readme ($ username , $ repository )
157+ {
158+ return $ this ->get ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/readme ' );
159+ }
146160
147161 /**
148162 * Manage the collaborators of a repository
You can’t perform that action at this time.
0 commit comments