We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 001f9a5 + 3cc624a commit a51fef9Copy full SHA for a51fef9
lib/Github/Api/Repo.php
@@ -143,6 +143,20 @@ public function remove($username, $repository)
143
{
144
return $this->delete('repos/'.rawurlencode($username).'/'.rawurlencode($repository));
145
}
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
+ }
160
161
/**
162
* Manage the collaborators of a repository
0 commit comments