Skip to content

Commit

Permalink
added support for field author.login into GHPullRequestCommitDetail o…
Browse files Browse the repository at this point in the history
…bject
  • Loading branch information
kurguzov committed Apr 29, 2024
1 parent 2e6dcc1 commit 8c8ea32
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/org/kohsuke/github/GHPullRequestCommitDetail.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
justification = "JSON API")
public class GHPullRequestCommitDetail {
private GHPullRequest owner;
private GHCommitDetailAuthor author;

/**
* Wrap up.
Expand All @@ -52,6 +53,14 @@ void wrapUp(GHPullRequest owner) {
this.owner = owner;
}

public static class GHCommitDetailAuthor {
String login;

public String getLogin() {
return login;
}
}

/**
* The type Authorship.
*
Expand Down Expand Up @@ -285,4 +294,8 @@ public CommitPointer[] getParents() {
System.arraycopy(parents, 0, newValue, 0, parents.length);
return newValue;
}

public GHCommitDetailAuthor getAuthor() {
return author;
}
}

0 comments on commit 8c8ea32

Please sign in to comment.