/*package*/ GHThread wrap(GitHub root) { this.root = root; if (this.repository!=null) this.repository.wrap(root); return this; }
void wrapUp(GitHub root) { if (user!=null) user.root = root; if (repo!=null) repo.wrap(root); } }
GHContent wrap(GitHub root) { this.root = root; if (repository!=null) repository.wrap(root); return this; }
@Override /*package*/ GHRepository[] getItems(GitHub root) { for (GHRepository item : items) item.wrap(root); return items; } }
GHContent wrap(GitHub root) { this.root = root; if (repository!=null) repository.wrap(root); return this; }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository!=null) repository.wrap(root); }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository!=null) repository.wrap(root); }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); } } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); } } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); } } }
/** * Gets the repository object from 'user/reponame' string that GitHub calls as "repository name" * * @see GHRepository#getName() */ public GHRepository getRepository(String name) throws IOException { String[] tokens = name.split("/"); return retrieve().to("/repos/" + tokens[0] + '/' + tokens[1], GHRepository.class).wrap(this); } /**
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository!=null) repository.wrap(root); if (organization != null) { organization.wrapUp(root); } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); repository.wrap(root); if (organization != null) { organization.wrapUp(root); } }
/** * * @return * null if the repository was not found */ public GHRepository getRepository(String name) throws IOException { try { return root.retrieve().to("/repos/" + login + '/' + name, GHRepository.class).wrap(root); } catch (FileNotFoundException e) { return null; } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); deployment.wrap(repository); deploymentStatus.wrap(repository); } } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); issue.wrap(repository); } else { issue.wrap(root); } } }
GHPullRequest wrapUp(GitHub root) { if (owner != null) owner.wrap(root); if (base != null) base.wrapUp(root); if (head != null) head.wrapUp(root); if (merged_by != null) merged_by.wrapUp(root); if (requested_reviewers != null) GHUser.wrap(requested_reviewers, root); return this; }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); issue.wrap(repository); } else { issue.wrap(root); } comment.wrapUp(issue); } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); issue.wrap(repository); } else { issue.wrap(root); } comment.wrapUp(issue); } }