Skip to content

Commit

Permalink
Merge pull request #56 from NotMyFault/update-gh-api
Browse files Browse the repository at this point in the history
Bump github-api from 1.93 to 1.314
  • Loading branch information
jglick authored May 22, 2023
2 parents ce0d421 + 1bf6d35 commit 3259dde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>github-api</artifactId>
<version>1.93</version>
<version>1.314</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3259dde

Please sign in to comment.