From 9802132b6f257b10bca48aaad8fe2f98cc8459aa Mon Sep 17 00:00:00 2001 From: Michael O'Cleirigh Date: Tue, 30 Sep 2014 11:51:57 -0400 Subject: [PATCH] Add GHCompare.getFiles() method to be able to see the precise files changed. 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. --- src/main/java/org/kohsuke/github/GHCompare.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/kohsuke/github/GHCompare.java b/src/main/java/org/kohsuke/github/GHCompare.java index 0435116995..d61991fa13 100644 --- a/src/main/java/org/kohsuke/github/GHCompare.java +++ b/src/main/java/org/kohsuke/github/GHCompare.java @@ -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);