/** * Author is part of the PullRequest Object * * @return The GitHub user that created the PR * @throws IOException Unable to connect to GitHub */ public GHUser getPullRequestAuthor() throws IOException { return getPullRequest().getUser(); }
public String getPullRequestUserName(int requestNumber) throws IOException { return ghRepo.getPullRequest(requestNumber).getUser().getLogin(); } }
public GitHubPRCause(GHPullRequest remotePr, GitHubPRRepository localRepo, String reason, boolean skip) { this(new GitHubPRPullRequest(remotePr), remotePr.getUser(), localRepo, skip, reason); withRemoteData(remotePr); if (localRepo != null) { withLocalRepo(localRepo); } }
String commenterLogin = commenter.getLogin(); GHUser prUser = pr.getUser(); if (prUser.getLogin().equals(commenterLogin)) { final String msg = commenterName + " (" + commenterLogin + ") has submitted "
PullRequestAction(GHPullRequest pr) { number = pr.getNumber(); url = pr.getHtmlUrl(); title = pr.getTitle(); userLogin = pr.getUser().getLogin(); baseRef = pr.getBase().getRef(); }
GHUser user = pr.getUser(); try { if (users.containsKey(user.getLogin())) {
@Override public PullRequestStatus apply(GHPullRequest input) { int prID = GHUtils.prIdFrom(input.getDiffUrl().toString()); try { GHUser user = input.getUser(); return new PullRequestStatus(prID, input.getHead().getSha(), mergedSHA, input.getHead().getLabel(), input.getBase().getLabel(), input.getHtmlUrl().toString(), user.getName(), user.getEmail(), input.getBody(), input.getTitle()); } catch (IOException e) { throw new RuntimeException(e); } } };
public GhprbPullRequest(GHPullRequest pr, Ghprb ghprb, GhprbRepository repo) { id = pr.getNumber(); setPullRequest(pr); this.helper = ghprb; this.repo = repo; GHUser author; try { author = pr.getUser(); } catch (IOException e) { throw new RuntimeException(e); } String reponame = repo.getName(); if (ghprb.isWhitelisted(author)) { setAccepted(true); } else { LOGGER.log(Level.INFO, "Author of #{0} {1} on {2} not in whitelist!", new Object[] {id, author.getLogin(), reponame}); if (!containsComment(pr, getRequestForTestingPhrase())) { repo.addComment(id, GhprbTrigger.getDscp().getRequestForTestingPhrase()); } } LOGGER.log(Level.INFO, "Created Pull Request #{0} on {1} by {2} ({3}) updated at: {4} SHA: {5}", new Object[] {id, reponame, author.getLogin(), getAuthorEmail(), updated, this.head}); }
String user = comment != null ? comment.getUser().getName() : ghpr.getUser().getName(); LOGGER.log( Level.INFO,