public static Issue getApiIssue(String url) {
        url = url.replace("https://api.github.com/repos", "https://github.com/");
        url = url.replaceFirst("/pulls/(\\d+)$", "/pull/$1");

        Uri uri = Uri.parse(url);
        return getIssue(uri);
    }
Parse a {@link Issue} from a non-null {@link Uri}

@param uri
@return {@link Issue} or null if none found in given
        {@link Uri}
app/src/main/java/com/github/pockethub/android/core/issue/IssueUriMatcher.java