File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/scala/codecheck/github/models Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ case class PullRequestRef(value: JValue) extends AbstractJson(value) {
56
56
def ref = get(" ref" )
57
57
def sha = get(" sha" )
58
58
lazy val user = User (value \ " user" )
59
- lazy val repo = Repository (value \ " repo" )
59
+ lazy val repo = objectOpt( " repo" )( Repository (_) )
60
60
}
61
61
62
62
case class PullRequest (value : JValue ) extends AbstractJson (value) {
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ class PullRequestOpSpec extends FunSpec with api.Constants {
24
24
assert(list.exists(_.deletions == None ))
25
25
assert(list.exists(_.changed_files == None ))
26
26
assert(list.exists(_.maintainer_can_modify == None ))
27
- assert(list.exists(_.base.repo.full_name == s " $otherUser/ $otherUserRepo" ))
27
+ assert(list.exists(_.base.repo.exists(_. full_name == s " $otherUser/ $otherUserRepo" ) ))
28
28
assert(list.exists(_.base.user.login == otherUser))
29
- assert(list.exists(_.base.repo.name == otherUserRepo))
29
+ assert(list.exists(_.base.repo.exists(_. name == otherUserRepo) ))
30
30
}
31
31
}
32
32
You can’t perform that action at this time.
0 commit comments