File tree Expand file tree Collapse file tree 5 files changed +9
-0
lines changed
main/java/com/spotify/github/v3/repos
java/com/spotify/github/v3
resources/com/spotify/github/v3/repos Expand file tree Collapse file tree 5 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,11 @@ public interface RepositoryBase extends UpdateTracking {
58
58
@ JsonProperty ("private" )
59
59
Boolean isPrivate ();
60
60
61
+ /** Is it archived */
62
+ @ Nullable
63
+ @ JsonProperty ("archived" )
64
+ Boolean isArchived ();
65
+
61
66
/** Is it public */
62
67
@ JsonProperty ("public" )
63
68
Optional <Boolean > isPublic ();
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ public void getRepository() throws Exception {
106
106
assertThat (repository .name (), is ("Hello-World" ));
107
107
assertThat (repository .fullName (), is (repository .owner ().login () + "/Hello-World" ));
108
108
assertThat (repository .isPrivate (), is (false ));
109
+ assertThat (repository .isArchived (), is (false ));
109
110
assertThat (repository .fork (), is (false ));
110
111
}
111
112
Original file line number Diff line number Diff line change @@ -49,5 +49,6 @@ public void testDeserialization() throws IOException {
49
49
assertThat (repository .name (), is ("Hello-World" ));
50
50
assertThat (repository .fullName (), is (repository .owner ().login () + "/Hello-World" ));
51
51
assertThat (repository .isPrivate (), is (false ));
52
+ assertThat (repository .isArchived (), is (false ));
52
53
}
53
54
}
Original file line number Diff line number Diff line change 23
23
"full_name" : " octocat/Hello-World" ,
24
24
"description" : " This your first repo!" ,
25
25
"private" : false ,
26
+ "archived" : false ,
26
27
"fork" : true ,
27
28
"url" : " https://api.github.com/repos/octocat/Hello-World" ,
28
29
"html_url" : " https://github.com/octocat/Hello-World" ,
Original file line number Diff line number Diff line change 23
23
"full_name" : " octocat/Hello-World" ,
24
24
"description" : " This your first repo!" ,
25
25
"private" : false ,
26
+ "archived" : false ,
26
27
"fork" : false ,
27
28
"url" : " https://api.github.com/repos/octocat/Hello-World" ,
28
29
"html_url" : " https://github.com/octocat/Hello-World" ,
You can’t perform that action at this time.
0 commit comments