Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GHCompare.getFiles() method to be able to see the precise files chan... #132

Merged
merged 1 commit into from
Sep 30, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add GHCompare.getFiles() method to be able to see the precise files c…
…hanged.

There is a file field inside of GHCompare but no getter to extract the values
for analysis.

There are contents in that field so I've added a new get method so that they
can be extracted.
  • Loading branch information
mocleiri committed Sep 30, 2014
commit 9802132b6f257b10bca48aaad8fe2f98cc8459aa
7 changes: 5 additions & 2 deletions src/main/java/org/kohsuke/github/GHCompare.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ public Commit getMergeBaseCommit() {
public Commit[] getCommits() {
return commits;
}

public GHCommit.File[] getFiles() {
return files;
}


public GHCompare wrap(GHRepository owner) {
public GHCompare wrap(GHRepository owner) {
this.owner = owner;
for (Commit commit : commits) {
commit.wrapUp(owner);
Expand Down