Skip to content

Commit 8e85bf8

Browse files
authored
Merge pull request #470 from recena/archived-attr
Added archived attribute in GHRepository
2 parents c8b0584 + 1012dcd commit 8e85bf8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.kohsuke</groupId>
55
<artifactId>pom</artifactId>
6-
<version>17</version>
6+
<version>20</version>
77
</parent>
88

99
<artifactId>github-api</artifactId>
@@ -36,6 +36,7 @@
3636
<plugins>
3737
<plugin>
3838
<artifactId>maven-surefire-plugin</artifactId>
39+
<version>2.22.1</version>
3940
<configuration>
4041
<rerunFailingTestsCount>2</rerunFailingTestsCount>
4142
</configuration>

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class GHRepository extends GHObject {
7474

7575
private String git_url, ssh_url, clone_url, svn_url, mirror_url;
7676
private GHUser owner; // not fully populated. beware.
77-
private boolean has_issues, has_wiki, fork, has_downloads, has_pages;
77+
private boolean has_issues, has_wiki, fork, has_downloads, has_pages, archived;
7878
@JsonProperty("private")
7979
private boolean _private;
8080
private int forks_count, stargazers_count, watchers_count, size, open_issues_count, subscribers_count;
@@ -393,6 +393,10 @@ public boolean isFork() {
393393
return fork;
394394
}
395395

396+
public boolean isArchived() {
397+
return archived;
398+
}
399+
396400
/**
397401
* Returns the number of all forks of this repository.
398402
* This not only counts direct forks, but also forks of forks, and so on.

0 commit comments

Comments
 (0)