Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

Commit 78bd758

Browse filesBrowse files
committed
Merge pull request hub4j#114 from ndeloof/master
get repository full name (including owner)
2 parents 92cc81d + 0efb206 commit 78bd758
Copy full SHA for 78bd758

File tree

Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed

‎src/main/java/org/kohsuke/github/GHRepository.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRepository.java
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
public class GHRepository {
5858
/*package almost final*/ GitHub root;
5959

60-
private String description, homepage, name;
60+
private String description, homepage, name, full_name;
6161
private String url; // this is the API url
6262
private String html_url; // this is the UI
6363
private String git_url, ssh_url, clone_url, svn_url;
@@ -131,6 +131,13 @@ public String getName() {
131131
return name;
132132
}
133133

134+
/**
135+
* Full repository name including the owner or organization. For example 'jenkinsci/jenkins' in case of http://github.com/jenkinsci/jenkins
136+
*/
137+
public String getFullName() {
138+
return full_name;
139+
}
140+
134141
public boolean hasPullAccess() {
135142
return permissions!=null && permissions.pull;
136143
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.