diff --git a/pom.xml b/pom.xml index 3de2dfea24..524901ec0d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ org.kohsuke pom - 17 + 20 github-api @@ -36,6 +36,7 @@ maven-surefire-plugin + 2.22.1 2 diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 2acc864123..af9380a7bc 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -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 boolean isFork() { 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.