public Issue addIssue(Repository repository, Issue issue) {
        Issue current = getIssue(repository, issue.number());
        if (current != null && current.equals(issue)) {
            return current;
        }

        String repoId = InfoUtils.createRepoId(repository);
        ItemReferences<Issue> repoIssues = repos.get(repoId);
        if (repoIssues == null) {
            repoIssues = new ItemReferences<>();
            repos.put(repoId, repoIssues);
        }

        repoIssues.put(issue.number(), issue);
        return issue;
    }
Add issue to store

@param repository
@param issue
@return issue
app/src/main/java/com/github/pockethub/android/core/issue/IssueStore.java