Skip to content

Commit

Permalink
Merge pull request #233 from vparfonov/master
Browse files Browse the repository at this point in the history
Add information about mirror url if it exist.
  • Loading branch information
oleg-nenashev committed Nov 30, 2015
2 parents f7d1327 + b037f75 commit 52727de
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class GHRepository extends GHObject {

private String description, homepage, name, full_name;
private String html_url; // this is the UI
private String git_url, ssh_url, clone_url, svn_url;
private String git_url, ssh_url, clone_url, svn_url, mirror_url;
private GHUser owner; // not fully populated. beware.
private boolean has_issues, has_wiki, fork, has_downloads;
@JsonProperty("private")
Expand Down Expand Up @@ -159,6 +159,14 @@ public String getSvnUrl() {
return svn_url;
}

/**
* Gets the Mirror URL to access this repository: https://github.com/apache/tomee
* mirrored from git://git.apache.org/tomee.git
*/
public String getMirrorUrl() {
return mirror_url;
}

/**
* Gets the SSH URL to access this repository, such as [email protected]:rails/rails.git
*/
Expand Down

0 comments on commit 52727de

Please sign in to comment.