/** * Email address is collected from GitHub as extra information, so lets cache it. * * @return The PR authors email address */ public String getAuthorEmail() { if (StringUtils.isEmpty(authorEmail)) { try { GHUser user = getPullRequestAuthor(); authorEmail = user.getEmail(); } catch (IOException e) { LOGGER.log(Level.SEVERE, "Unable to fetch author info for " + id); } } authorEmail = StringUtils.isEmpty(authorEmail) ? "" : authorEmail; return authorEmail; }
private boolean isOwnCode(GHPullRequest pr, GHUser commenter) { try { String commenterName = commenter.getName(); String commenterEmail = commenter.getEmail(); String commenterLogin = commenter.getLogin();
this.triggerSenderEmail = triggerSender.getEmail(); } catch (IOException e) { LOGGER.error("Can't get trigger sender email from remote PR");
@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); } } };
user.getLogin(), user.getName(), user.getEmail() ));
User u = User.current(); u.setFullName(self.getName()); u.addProperty(new Mailer.UserProperty(self.getEmail()));
triggerAuthorEmail = getString(cause.getTriggerSender().getEmail(), ""); } catch (Exception e) {
userEmail = execute(() -> pr.getUser().getEmail()); } catch (Exception e) { LOGGER.error("Can't get GitHub user email.", e);