Added archived attribute in GHRepository. Updated the parent POM

This commit is contained in:
Manuel Recena
2018-10-25 11:24:46 +02:00
parent c8b0584127
commit 1012dcd194
2 changed files with 7 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ public class GHRepository extends GHObject {
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, has_pages;
private boolean has_issues, has_wiki, fork, has_downloads, has_pages, archived;
@JsonProperty("private")
private boolean _private;
private int forks_count, stargazers_count, watchers_count, size, open_issues_count, subscribers_count;
@@ -393,6 +393,10 @@ public class GHRepository extends GHObject {
return fork;
}
public boolean isArchived() {
return archived;
}
/**
* Returns the number of all forks of this repository.
* This not only counts direct forks, but also forks of forks, and so on.