/* (non-Javadoc)
* @see com.github.api.v2.services.RepositoryService#updateRepository(com.github.api.v2.schema.Repository)
*/
@Override
public void updateRepository(Repository repository) {
GitHubApiUrlBuilder builder = createGitHubApiUrlBuilder(GitHubApiUrls.RepositoryApiUrls.UPDATE_REPOSITORY_URL);
String apiUrl = builder.withField(ParameterNames.USER_NAME, repository.getOwner()).withField(ParameterNames.REPOSITORY_NAME, repository.getName()).buildUrl();
Map<String, String> parameters = new HashMap<String, String>();
parameters.put("values[" + ParameterNames.DESCRIPTION + "]", repository.getDescription());
parameters.put("values[" + ParameterNames.HOME_PAGE + "]", repository.getHomepage());
parameters.put("values[" + ParameterNames.HAS_WIKI + "]", String.valueOf(repository.isHasWiki()));
parameters.put("values[" + ParameterNames.HAS_ISSUES + "]", String.valueOf(repository.isHasIssues()));