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

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

Open
h1alexbel opened this issue May 10, 2024 · 0 comments

Comments

@h1alexbel
Copy link

h1alexbel commented May 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant