jcabi / jcabi/jcabi-github

MkGithub example code doesn't compile

Open
#1,054 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
307
Forks
144
Avg merge
1d 22h
Merged PRs (30d)
14

Description

From http://github.jcabi.com/apidocs-0.22/com/jcabi/github/mock/MkGithub.html

> Mock Github client.
>
> This is how you use it:
>
> ``` java
> Github github = new MkGithub(new MkStorage.InFile(file), "jeff");
> github.repos().create("jcabi/jcabi-github");
> Repo repo = github.repos().get("jcabi/jcabi-github");
> Issues issues = repo.issues();
> Issue issue = issues.post("issue title", "issue body");
> ```

However, this code causes 3 compilation errors; see https://gist.github.com/cvrebert/5f4a2a943299720ac26c

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.