jcabi / jcabi-github

Java Object-Oriented Wrapper of GitHub API, with a fake implementation of the entire GitHub API (for your tests)
https://github.jcabi.com
Other
305 stars 142 forks source link

'title' is absent in JSON: {"number":1,"head":{"ref":"...' when wrapping `MkPull.java` with Pull.Smart() #1745

Open h1alexbel opened 4 months ago

h1alexbel commented 4 months ago

Take a look:

final Pull pull = new MkGithub().randomRepo().pulls().create("test", "testing", "master");
final String title = new Pull.Smart(pull).title();

And I got this:

15:00:39.173 [main] INFO com.jcabi.github.mock.MkRepos -- repository jeff/cikNmfTTZ7tQOH7Iccav created by jeff
15:00:39.209 [main] INFO com.jcabi.github.mock.MkIssues -- issue #1 created in jeff/cikNmfTTZ7tQOH7Iccav by jeff: test

java.lang.IllegalStateException: 'title' is absent in JSON: {"number":1,"head":{"ref":"testing","label":"jeff:testing"},"base":{"ref":"master","label":"jeff:master"},"user":{"login":"jeff"},"comments":0}

Please, fix this.