/** * Edit pull request * * @param repository * @param request * @return edited pull request * @throws IOException */ public PullRequest editPullRequest(IRepositoryIdProvider repository, PullRequest request) throws IOException { String id = getId(repository); if (request == null) throw new IllegalArgumentException("Request cannot be null"); //$NON-NLS-1$ StringBuilder uri = new StringBuilder(SEGMENT_REPOS); uri.append('/').append(id); uri.append(SEGMENT_PULLS); uri.append('/').append(request.getNumber()); Map<String, String> params = editPrMap(request); return client.post(uri.toString(), params, PullRequest.class); }