private Repository repoFromUrl(String url) {
        if (url == null || url.length() == 0) {
            return null;
        }
        String owner = null;
        String name = null;
        for (String segment : url.split("/")) //$NON-NLS-1$
        {
            if (segment.length() > 0) {
                if (owner == null) {
                    owner = segment;
                } else if (name == null) {
                    name = segment;
                } else {
                    break;
                }
            }
        }

        if (owner != null && owner.length() > 0 && name != null && name.length() > 0) {
            return InfoUtils.createRepoFromData(owner, name);
        } else {
            return null;
        }
    }
Add issue to store

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