Added support for projects.

Fixes issue #425
This commit is contained in:
Martin van Zijl
2018-12-17 10:04:42 +13:00
committed by Liam Newman
parent 78abb2edcb
commit b20c2babec
5 changed files with 259 additions and 0 deletions

View File

@@ -745,6 +745,10 @@ public class GitHub {
return user;
}
public GHProject getProject(long id) throws IOException {
return retrieve().withPreview(INERTIA).to("/projects/"+id,GHProject.class).wrap(this);
}
private static class GHApiInfo {
private String rate_limit_url;