Skip to content

Commit 2a967ae

Browse files
added project into repository
1 parent e3ed2c8 commit 2a967ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/scala/com/codacy/client/bitbucket/v2/Repository.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ case class Repository(
2020
language: Option[String],
2121
urls: Seq[RepositoryUrl],
2222
uuid: String,
23-
slug: String
23+
slug: String,
24+
project: Option[String]
2425
)
2526

2627
object Repository {
@@ -47,7 +48,8 @@ object Repository {
4748
(__ \ "language").readNullable[String] and
4849
(__ \ "links").read[Map[String, JsValue]].map(parseLinks) and
4950
(__ \ "uuid" ).read[String] and
50-
(__ \ "slug" ).read[String]
51+
(__ \ "slug" ).read[String] and
52+
(__ \ "project" \ "name").readNullable[String]
5153
) (Repository.apply _)
5254
}
5355
// format: on

0 commit comments

Comments
 (0)