Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository model enriched: Archived status available now #565

Merged
merged 1 commit into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions github4s/src/main/scala/github4s/Decoders.scala
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ object Decoders {
priv <- c.downField("private").as[Boolean]
description <- c.downField("description").as[Option[String]]
fork <- c.downField("fork").as[Boolean]
archived <- c.downField("archived").as[Boolean]
created_at <- c.downField("created_at").as[String]
updated_at <- c.downField("updated_at").as[String]
pushed_at <- c.downField("pushed_at").as[String]
Expand Down Expand Up @@ -153,6 +154,7 @@ object Decoders {
`private` = priv,
description = description,
fork = fork,
archived = archived,
created_at = created_at,
updated_at = updated_at,
pushed_at = pushed_at,
Expand Down
1 change: 1 addition & 0 deletions github4s/src/main/scala/github4s/domain/Repository.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ final case class Repository(
owner: User,
`private`: Boolean,
fork: Boolean,
archived: Boolean,
urls: RepoUrls,
created_at: String,
updated_at: String,
Expand Down
1 change: 1 addition & 0 deletions github4s/src/test/scala/github4s/utils/FakeResponses.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ trait FakeResponses {
| "html_url": "https://github.com/47degrees/github4s",
| "description": "A GitHub API wrapper written in Scala",
| "fork": false,
| "archived": false,
| "url": "https://api.github.com/repos/47degrees/github4s",
| "forks_url": "https://api.github.com/repos/47degrees/github4s/forks",
| "keys_url": "https://api.github.com/repos/47degrees/github4s/keys{/key_id}",
Expand Down
1 change: 1 addition & 0 deletions github4s/src/test/scala/github4s/utils/TestData.scala
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ trait TestData {
user,
false,
false,
false,
RepoUrls(
s"https://api.github.com/repos/$validRepoOwner/$validRepoName",
s"https://github.com/$validRepoOwner/$validRepoName",
Expand Down