mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-21 15:50:49 +00:00
support both v2 and v3
This commit is contained in:
@@ -31,7 +31,7 @@ package org.kohsuke.github;
|
||||
public class GHCommitPointer {
|
||||
private String ref, sha, label;
|
||||
private GHUser user;
|
||||
private GHRepository repository;
|
||||
private GHRepository repository/*V2*/,repo/*V3*/;
|
||||
|
||||
/**
|
||||
* This points to the user who owns
|
||||
@@ -45,7 +45,7 @@ public class GHCommitPointer {
|
||||
* The repository that contains the commit.
|
||||
*/
|
||||
public GHRepository getRepository() {
|
||||
return repository;
|
||||
return repo!=null ? repo : repository;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user