-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes issue #64.
- Loading branch information
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,7 @@ public class GHRepository { | |
private String description, homepage, name; | ||
private String url; // this is the API url | ||
private String html_url; // this is the UI | ||
private String git_url, ssh_url, clone_url, svn_url; | ||
private GHUser owner; // not fully populated. beware. | ||
private boolean has_issues, has_wiki, fork, has_downloads; | ||
@JsonProperty("private") | ||
|
@@ -97,15 +98,29 @@ public String getUrl() { | |
* This URL is read-only. | ||
*/ | ||
public String getGitTransportUrl() { | ||
return "git://github.com/"+getOwnerName()+"/"+name+".git"; | ||
return git_url; | ||
} | ||
|
||
/** | ||
* Gets the HTTPS URL to this repository, such as "https://github.com/kohsuke/jenkins.git" | ||
* This URL is read-only. | ||
*/ | ||
public String gitHttpTransportUrl() { | ||
return "https://github.com/"+getOwnerName()+"/"+name+".git"; | ||
return clone_url; | ||
} | ||
|
||
/** | ||
* Gets the Subversion URL to access this repository: https://github.com/rails/rails | ||
*/ | ||
public String getSvnUrl() { | ||
return svn_url; | ||
} | ||
|
||
/** | ||
* Gets the SSH URL to access this repository, such as [email protected]:rails/rails.git | ||
*/ | ||
public String getSshUrl() { | ||
return ssh_url; | ||
} | ||
|
||
/** | ||
|