nabeelmukhtar / github-java-sdk

This project aims to provide a Java wrapper for Github API.
http://develop.github.com/
64 stars 22 forks source link

OrganizationServiceImpl.createTeam with doesn't work with multiple repositories #20

Open oparrish2 opened 13 years ago

oparrish2 commented 13 years ago

If you try to create a team and add multiple repositories - only one is added. This is because of

for (String repoName : repoNames) {
      parameters.put("team[" + ParameterNames.REPO_NAMES + "][]", repoName);
}

You can't add multiple values with one key to a map. I'm going to work on a fix but, no telling how elegant it may be...

nabeelmukhtar commented 13 years ago

Thanks for reporting. I will have a look. GitHub have also released their official Java library for 3.0 API. I intend to merge my contributions to it. You may want to have a look at it. Its located at https://github.com/eclipse/egit-github.