Releases: jcabi/jcabi-github
Bug fix in MkIssues
Fixed bug in MkIssues
, see #321
jcabi-http instead of rexsl-test
In this version rexsl-test 0.11.1 was replaced by jcabi-http 1.0
Bug fix
Milestones, Organizations, better test coverage
This versions implements Milestones API, Organizations API, and adds test coverage to existed classes.
Github.entry()
Github
interface gets method entry()
, which returns an HTTP request pointing to the entry point of Github API
Limits, Emojis, Meta, Labels, etc.
This version implemented a few new APIs, including Limits, Emojis, Meta, etc. Besides that, a few major bugs were fixed. The versions looks much more stable, comparing to previous ones.
MkGithub mock version of Github server
This version introduces class MkGithub
, which is a mock version of Github server-side implementation. This is how you can use it in your unit tests:
Github github = new MkGithub();
Repo repo = github.repos().create(
Json.createObjectBuilder().add("name", "test").build()
);
Issue issue = repo.issues().create("title of the issue", "body of it");
issue.comments().post("How are you?");
Pagination, Users API, Issue Events API
This version introduces pagination and implements Users API and Issue Events API.
Pull Requests
Pull Request API implemented in this version. Besides that, we migrated to rexsl-test 0.8, which allowed to use PATCH methods via Apache HttpComponents implementation.
json() and patch() methods
This version introduces a new idea of exposing JSON objects of key Github entities. For example, in order to get issue details you do it like this:
Github github = new Github.Simple(".. your OAuth token ..");
Repo repo = github.repo("jcabi/jcabi-github");
Issue issue = repo.issues().get(1);
Date date = issue.json().getString("created_at");
Besides that, you can use supplementary Tool
classes:
Date date = new Issue.Tool(issue).createdAt();