mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-15 00:11:22 +00:00
Fixed the getReadme() method.
It was calling the wrong endpoint. Fixed issue #99.
This commit is contained in:
@@ -964,8 +964,12 @@ public class GHRepository extends GHObject {
|
||||
return Arrays.asList(files);
|
||||
}
|
||||
|
||||
public GHContent getReadme() throws Exception {
|
||||
return getFileContent("readme");
|
||||
/**
|
||||
* https://developer.github.com/v3/repos/contents/#get-the-readme
|
||||
*/
|
||||
public GHContent getReadme() throws IOException {
|
||||
Requester requester = root.retrieve();
|
||||
return requester.to(getApiTailUrl("readme"), GHContent.class).wrap(this);
|
||||
}
|
||||
|
||||
public GHContentUpdateResponse createContent(String content, String commitMessage, String path) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user