O'Reilly logo

Learning Spring Boot by Greg L. Turnquist

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Digging into GitHub issues

Let's continue working on our simple app that will fetch GitHub issues from multiple repositories. To fetch GitHub issues, we need to establish a domain object:

package learningspringboot;

import org.springframework.social.github.api.GitHubIssue;

public class Issue {

    private String repo;
    private GitHubIssue githubIssue;

    public Issue(String repo, GitHubIssue gitHubIssue) {
        this.repo = repo;
        this.githubIssue = gitHubIssue;
    }

    public String getRepo() {
        return repo;
    }

    public GitHubIssue getGithubIssue() {
        return githubIssue;
    }
}

Spring Social GitHub comes with a GitHubIssue class, but this class doesn't include the name of the repository for a given issue. The Issue class listed in the preceding code is basically a wrapper ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required