Skip to content

Commit 0a47202

Browse files
authored
Make repositories' archived status available (#565)
1 parent 9ca2935 commit 0a47202

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

github4s/src/main/scala/github4s/Decoders.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ object Decoders {
119119
priv <- c.downField("private").as[Boolean]
120120
description <- c.downField("description").as[Option[String]]
121121
fork <- c.downField("fork").as[Boolean]
122+
archived <- c.downField("archived").as[Boolean]
122123
created_at <- c.downField("created_at").as[String]
123124
updated_at <- c.downField("updated_at").as[String]
124125
pushed_at <- c.downField("pushed_at").as[String]
@@ -153,6 +154,7 @@ object Decoders {
153154
`private` = priv,
154155
description = description,
155156
fork = fork,
157+
archived = archived,
156158
created_at = created_at,
157159
updated_at = updated_at,
158160
pushed_at = pushed_at,

github4s/src/main/scala/github4s/domain/Repository.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ final case class Repository(
2323
owner: User,
2424
`private`: Boolean,
2525
fork: Boolean,
26+
archived: Boolean,
2627
urls: RepoUrls,
2728
created_at: String,
2829
updated_at: String,

github4s/src/test/scala/github4s/utils/FakeResponses.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ trait FakeResponses {
8383
| "html_url": "https://github.com/47degrees/github4s",
8484
| "description": "A GitHub API wrapper written in Scala",
8585
| "fork": false,
86+
| "archived": false,
8687
| "url": "https://api.github.com/repos/47degrees/github4s",
8788
| "forks_url": "https://api.github.com/repos/47degrees/github4s/forks",
8889
| "keys_url": "https://api.github.com/repos/47degrees/github4s/keys{/key_id}",

github4s/src/test/scala/github4s/utils/TestData.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ trait TestData {
374374
user,
375375
false,
376376
false,
377+
false,
377378
RepoUrls(
378379
s"https://api.github.com/repos/$validRepoOwner/$validRepoName",
379380
s"https://github.com/$validRepoOwner/$validRepoName",

0 commit comments

Comments
 (0)