/** * Create pull request * * @param repository * @param request * @return created pull request * @throws IOException */ public PullRequest createPullRequest(IRepositoryIdProvider repository, PullRequest request) throws IOException { String id = getId(repository); StringBuilder uri = new StringBuilder(SEGMENT_REPOS); uri.append('/').append(id); uri.append(SEGMENT_PULLS); Map<String, String> params = createPrMap(request); return client.post(uri.toString(), params, PullRequest.class); }