Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9802132

Browse filesBrowse files
committed
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.
1 parent d228a5f commit 9802132
Copy full SHA for 9802132

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed

‎src/main/java/org/kohsuke/github/GHCompare.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHCompare.java
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,12 @@ public Commit getMergeBaseCommit() {
6868
public Commit[] getCommits() {
6969
return commits;
7070
}
71+
72+
public GHCommit.File[] getFiles() {
73+
return files;
74+
}
7175

72-
73-
public GHCompare wrap(GHRepository owner) {
76+
public GHCompare wrap(GHRepository owner) {
7477
this.owner = owner;
7578
for (Commit commit : commits) {
7679
commit.wrapUp(owner);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.