diff --git a/lib/pom.xml b/lib/pom.xml index 1ad3135..980ed4f 100644 --- a/lib/pom.xml +++ b/lib/pom.xml @@ -27,7 +27,7 @@ org.kohsuke github-api - 1.93 + 1.314 diff --git a/lib/src/main/java/io/jenkins/tools/incrementals/lib/UpdateChecker.java b/lib/src/main/java/io/jenkins/tools/incrementals/lib/UpdateChecker.java index 3509ca9..b0857e1 100644 --- a/lib/src/main/java/io/jenkins/tools/incrementals/lib/UpdateChecker.java +++ b/lib/src/main/java/io/jenkins/tools/incrementals/lib/UpdateChecker.java @@ -235,7 +235,7 @@ private static final class GitHubCommit { */ private static boolean isAncestor(GitHubCommit ghc, String branch) throws Exception { try { - GHCompare.Status status = GitHub.connect().getRepository(ghc.owner + '/' + ghc.repo).getCompare(branch, ghc.hash).status; + GHCompare.Status status = GitHub.connect().getRepository(ghc.owner + '/' + ghc.repo).getCompare(branch, ghc.hash).getStatus(); return status == GHCompare.Status.identical || status == GHCompare.Status.behind; } catch (FileNotFoundException x) { // For example, that branch does not exist in this repository.