File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed
src/main/java/org/kohsuke/github Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 2
2
<modelVersion >4.0.0</modelVersion >
3
3
<groupId >org.kohsuke</groupId >
4
4
<artifactId >cortexapps-github-api</artifactId >
5
- <version >1.319 </version >
5
+ <version >1.320 </version >
6
6
<name >GitHub API for Java</name >
7
7
<url >https://github-api.kohsuke.org/</url >
8
8
<description >GitHub API for Java</description >
Original file line number Diff line number Diff line change @@ -253,19 +253,20 @@ public static class Parent {
253
253
/**
254
254
* The Class User.
255
255
*/
256
- static class User {
256
+ public static class User {
257
257
258
258
/** The gravatar id. */
259
259
// TODO: what if someone who doesn't have an account on GitHub makes a commit?
260
- @ SuppressFBWarnings (value = "UUF_UNUSED_FIELD " , justification = "We don't provide it in API now " )
261
- String url , avatar_url , gravatar_id ;
260
+ @ SuppressFBWarnings (value = "UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD " , justification = "used in backend code " )
261
+ public String url , avatar_url , gravatar_id ;
262
262
263
263
/** The id. */
264
264
@ SuppressFBWarnings (value = "UUF_UNUSED_FIELD" , justification = "We don't provide it in API now" )
265
265
int id ;
266
266
267
267
/** The login. */
268
- String login ;
268
+ @ SuppressFBWarnings (value = "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" , justification = "used in backend code" )
269
+ public String login ;
269
270
}
270
271
271
272
/** The sha. */
@@ -471,6 +472,17 @@ public GHUser getAuthor() throws IOException {
471
472
return resolveUser (author );
472
473
}
473
474
475
+ /**
476
+ * Gets author.
477
+ *
478
+ * @return the author
479
+ * @throws IOException
480
+ * the io exception
481
+ */
482
+ public User getAuthorRaw () throws IOException {
483
+ return author ;
484
+ }
485
+
474
486
/**
475
487
* Gets the date the change was authored on.
476
488
*
You can’t perform that action at this time.
0 commit comments