Skip to content

Commit

Permalink
GHRepository owner is NOT a GHUser but more generically a GHPerson.
Browse files Browse the repository at this point in the history
When GitHub repositories are associated to organisations,
the owner is NOT the user but the org itself.
  • Loading branch information
lucamilanesio committed Sep 27, 2013
1 parent f52b4a2 commit 2fb3f31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/GHPerson.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @author Kohsuke Kawaguchi
*/
public abstract class GHPerson {
public class GHPerson {
/*package almost final*/ GitHub root;

// core data fields that exist even for "small" user data (such as the user info in pull request)
Expand Down
2 changes: 1 addition & 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 {
private String description, homepage, name;
private String url; // this is the API url
private String html_url; // this is the UI
private GHUser owner; // not fully populated. beware.
private GHPerson owner; // not fully populated. beware.
private boolean has_issues, has_wiki, fork, _private, has_downloads;
private int watchers,forks,open_issues,size;
private String created_at, pushed_at;
Expand Down

0 comments on commit 2fb3f31

Please sign in to comment.