Skip to content

Commit 1171099

Browse files
Gregory PettGregory Pett
authored andcommitted
new attempt
1 parent 6596d17 commit 1171099

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>org.kohsuke</groupId>
44
<artifactId>cortexapps-github-api</artifactId>
5-
<version>1.319</version>
5+
<version>1.320</version>
66
<name>GitHub API for Java</name>
77
<url>https://github-api.kohsuke.org/</url>
88
<description>GitHub API for Java</description>

src/main/java/org/kohsuke/github/GHCommit.java

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,19 +253,19 @@ public static class Parent {
253253
/**
254254
* The Class User.
255255
*/
256-
static class User {
256+
public static class User {
257257

258258
/** The gravatar id. */
259259
// TODO: what if someone who doesn't have an account on GitHub makes a commit?
260260
@SuppressFBWarnings(value = "UUF_UNUSED_FIELD", justification = "We don't provide it in API now")
261-
String url, avatar_url, gravatar_id;
261+
public String url, avatar_url, gravatar_id;
262262

263263
/** The id. */
264264
@SuppressFBWarnings(value = "UUF_UNUSED_FIELD", justification = "We don't provide it in API now")
265265
int id;
266266

267267
/** The login. */
268-
String login;
268+
public String login;
269269
}
270270

271271
/** The sha. */
@@ -471,6 +471,17 @@ public GHUser getAuthor() throws IOException {
471471
return resolveUser(author);
472472
}
473473

474+
/**
475+
* Gets author.
476+
*
477+
* @return the author
478+
* @throws IOException
479+
* the io exception
480+
*/
481+
public User getAuthorRaw() throws IOException {
482+
return author;
483+
}
484+
474485
/**
475486
* Gets the date the change was authored on.
476487
*

0 commit comments

Comments
 (0)