From 56aa3a977369c46940cd68a3d228d27b63544684 Mon Sep 17 00:00:00 2001 From: vchernodon <92736640+vchernodon@users.noreply.github.com> Date: Fri, 25 Mar 2022 12:54:11 +0100 Subject: [PATCH 1/5] Update repository.json --- src/test/resources/com/spotify/github/v3/repos/repository.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/resources/com/spotify/github/v3/repos/repository.json b/src/test/resources/com/spotify/github/v3/repos/repository.json index 5637b300..3f6fa8a2 100644 --- a/src/test/resources/com/spotify/github/v3/repos/repository.json +++ b/src/test/resources/com/spotify/github/v3/repos/repository.json @@ -23,6 +23,7 @@ "full_name": "octocat/Hello-World", "description": "This your first repo!", "private": false, + "archived": false, "fork": true, "url": "https://api.github.com/repos/octocat/Hello-World", "html_url": "https://github.com/octocat/Hello-World", From 07708307b5de9e30ea2f375746f6a643269f0e65 Mon Sep 17 00:00:00 2001 From: vchernodon <92736640+vchernodon@users.noreply.github.com> Date: Fri, 25 Mar 2022 12:56:25 +0100 Subject: [PATCH 2/5] Update repository_get.json --- .../resources/com/spotify/github/v3/repos/repository_get.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/resources/com/spotify/github/v3/repos/repository_get.json b/src/test/resources/com/spotify/github/v3/repos/repository_get.json index 3e9fbf30..219e7b90 100644 --- a/src/test/resources/com/spotify/github/v3/repos/repository_get.json +++ b/src/test/resources/com/spotify/github/v3/repos/repository_get.json @@ -23,6 +23,7 @@ "full_name": "octocat/Hello-World", "description": "This your first repo!", "private": false, + "archived": false, "fork": false, "url": "https://api.github.com/repos/octocat/Hello-World", "html_url": "https://github.com/octocat/Hello-World", From 7dd45a8f4b4679ec9fa9c8109e39e931862b7c83 Mon Sep 17 00:00:00 2001 From: vchernodon <92736640+vchernodon@users.noreply.github.com> Date: Fri, 25 Mar 2022 13:16:12 +0100 Subject: [PATCH 3/5] Update RepositoryBase.java archived property added --- .../java/com/spotify/github/v3/repos/RepositoryBase.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/spotify/github/v3/repos/RepositoryBase.java b/src/main/java/com/spotify/github/v3/repos/RepositoryBase.java index 88592280..900af1bf 100644 --- a/src/main/java/com/spotify/github/v3/repos/RepositoryBase.java +++ b/src/main/java/com/spotify/github/v3/repos/RepositoryBase.java @@ -58,6 +58,11 @@ public interface RepositoryBase extends UpdateTracking { @JsonProperty("private") Boolean isPrivate(); + /** Is it archived */ + @Nullable + @JsonProperty("archived") + Boolean isArchived(); + /** Is it public */ @JsonProperty("public") Optional isPublic(); From 2a1c915659297a60383290bc3151bae874f1fd63 Mon Sep 17 00:00:00 2001 From: vchernodon <92736640+vchernodon@users.noreply.github.com> Date: Fri, 25 Mar 2022 13:19:15 +0100 Subject: [PATCH 4/5] Update RepositoryClientTest.java --- .../java/com/spotify/github/v3/clients/RepositoryClientTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/spotify/github/v3/clients/RepositoryClientTest.java b/src/test/java/com/spotify/github/v3/clients/RepositoryClientTest.java index 3e985a0c..dd737532 100644 --- a/src/test/java/com/spotify/github/v3/clients/RepositoryClientTest.java +++ b/src/test/java/com/spotify/github/v3/clients/RepositoryClientTest.java @@ -106,6 +106,7 @@ public void getRepository() throws Exception { assertThat(repository.name(), is("Hello-World")); assertThat(repository.fullName(), is(repository.owner().login() + "/Hello-World")); assertThat(repository.isPrivate(), is(false)); + assertThat(repository.isArchived(), is(false)); assertThat(repository.fork(), is(false)); } From c029a8b109f13905c8cc981f2cbde4d7da4d04fb Mon Sep 17 00:00:00 2001 From: vchernodon <92736640+vchernodon@users.noreply.github.com> Date: Fri, 25 Mar 2022 13:20:13 +0100 Subject: [PATCH 5/5] Update RepositoryTest.java --- src/test/java/com/spotify/github/v3/repos/RepositoryTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/spotify/github/v3/repos/RepositoryTest.java b/src/test/java/com/spotify/github/v3/repos/RepositoryTest.java index 38aa0ad8..a5cfad5b 100644 --- a/src/test/java/com/spotify/github/v3/repos/RepositoryTest.java +++ b/src/test/java/com/spotify/github/v3/repos/RepositoryTest.java @@ -49,5 +49,6 @@ public void testDeserialization() throws IOException { assertThat(repository.name(), is("Hello-World")); assertThat(repository.fullName(), is(repository.owner().login() + "/Hello-World")); assertThat(repository.isPrivate(), is(false)); + assertThat(repository.isArchived(), is(false)); } }