@Nullable private static GithubPullRequest createPullRequest( @NotNull Project project, @NotNull GithubAuthData auth, @NotNull GithubFullPath targetRepo, @NotNull String title, @NotNull String description, @NotNull String head, @NotNull String base) { try { return GithubApiUtil.createPullRequest( auth, targetRepo.getUser(), targetRepo.getRepository(), title, description, head, base); } catch (IOException e) { GithubNotifications.showError(project, CANNOT_CREATE_PULL_REQUEST, e); return null; } }
@Override public String toString() { return myPath.getUser() + ":" + myPath.getRepository(); }