Skip to content

Commit

Permalink
Merge pull request #114 from ndeloof/master
Browse files Browse the repository at this point in the history
get repository full name (including owner)
  • Loading branch information
kohsuke committed Aug 30, 2014
2 parents 92cc81d + 0efb206 commit 78bd758
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
public class GHRepository {
/*package almost final*/ GitHub root;

private String description, homepage, name;
private String description, homepage, name, full_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;
Expand Down Expand Up @@ -131,6 +131,13 @@ public String getName() {
return name;
}

/**
* Full repository name including the owner or organization. For example 'jenkinsci/jenkins' in case of http://github.com/jenkinsci/jenkins
*/
public String getFullName() {
return full_name;
}

public boolean hasPullAccess() {
return permissions!=null && permissions.pull;
}
Expand Down

0 comments on commit 78bd758

Please sign in to comment.