Пример #1
0
 public GHRepository createRepository(
     String name, String description, String homepage, GHTeam team, boolean isPublic)
     throws IOException {
   // such API doesn't exist, so fall back to HTML scraping
   return new Poster(root, V3)
       .withCredential()
       .with("name", name)
       .with("description", description)
       .with("homepage", homepage)
       .with("public", isPublic)
       .with("team_id", team.getId())
       .to("/orgs/" + login + "/repos", GHRepository.class)
       .wrap(root);
 }