From e07f6e275fad7be71b1d4b1858518b679a13a84f Mon Sep 17 00:00:00 2001 From: Gregory Pett Date: Tue, 11 Jun 2024 20:51:20 -0400 Subject: [PATCH] adding items for test --- pom.xml | 54 +++++++++---------- .../java/org/kohsuke/github/GHCommit.java | 14 ++--- 2 files changed, 32 insertions(+), 36 deletions(-) diff --git a/pom.xml b/pom.xml index ab8760433e..db4763b7be 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.kohsuke cortexapps-github-api - 1.316 + 1.320-SNAPSHOT GitHub API for Java https://github-api.kohsuke.org/ GitHub API for Java @@ -220,17 +220,17 @@ all - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - true - - sonatype-nexus-staging - https://oss.sonatype.org/ - true - - + + + + + + + + + + + org.codehaus.mojo animal-sniffer-maven-plugin @@ -260,21 +260,21 @@ maven-site-plugin 3.12.1 - - org.apache.maven.plugins - maven-release-plugin - 2.5.3 - - true - false - release - deploy - - - - org.sonatype.plugins - nexus-staging-maven-plugin - + + + + + + + + + + + + + + + org.apache.maven.plugins maven-project-info-reports-plugin diff --git a/src/main/java/org/kohsuke/github/GHCommit.java b/src/main/java/org/kohsuke/github/GHCommit.java index 3a2400e019..42fd50779a 100644 --- a/src/main/java/org/kohsuke/github/GHCommit.java +++ b/src/main/java/org/kohsuke/github/GHCommit.java @@ -253,19 +253,19 @@ public static class Parent { /** * The Class User. */ - static class User { + public static class User { /** The gravatar id. */ // TODO: what if someone who doesn't have an account on GitHub makes a commit? @SuppressFBWarnings(value = "UUF_UNUSED_FIELD", justification = "We don't provide it in API now") - String url, avatar_url, gravatar_id; + public String url, avatar_url, gravatar_id; /** The id. */ @SuppressFBWarnings(value = "UUF_UNUSED_FIELD", justification = "We don't provide it in API now") int id; /** The login. */ - String login; + public String login; } /** The sha. */ @@ -463,12 +463,8 @@ public List getParents() throws IOException { * @throws IOException * the io exception */ - public GHUser getAuthor() throws IOException { - if (author != null) { - return resolveUser(author); - } - populate(); - return resolveUser(author); + public User getAuthor() throws IOException { + return author; } /**