Skip to content

Commit

Permalink
added support for field committer.login as well as javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
kurguzov committed Apr 30, 2024
1 parent 8c8ea32 commit 7d69bde
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/main/java/org/kohsuke/github/GHPullRequestCommitDetail.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
justification = "JSON API")
public class GHPullRequestCommitDetail {
private GHPullRequest owner;
private GHCommitDetailAuthor author;
private GHCommitDetailAuthor author;
private GHCommitDetailAuthor committer;

/**
* Wrap up.
Expand All @@ -53,9 +54,15 @@ void wrapUp(GHPullRequest owner) {
this.owner = owner;
}

/**
* Type for the GitHub user
*/
public static class GHCommitDetailAuthor {
String login;

/**
* GitHub user login
*/
public String getLogin() {
return login;
}
Expand Down Expand Up @@ -295,7 +302,19 @@ public CommitPointer[] getParents() {
return newValue;
}

/**
* Gets the GitHub user - author of the commit.
*
*/
public GHCommitDetailAuthor getAuthor() {
return author;
}

/**
* Gets the GitHub user - committer of the commit.
*
*/
public GHCommitDetailAuthor getCommitter() {
return committer;
}
}

0 comments on commit 7d69bde

Please sign in to comment.