Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
minor adjustment to add_team fixing the issue of having 2 repos attac…
…hed to a single team when the repos start the same way
  • Loading branch information
herlo committed Nov 28, 2011
commit cd602dba7a7a8168920cb710b3eb35f4a1464a08
3 changes: 2 additions & 1 deletion github2/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def add_team(self, organization, name, permission, repos=[]):
team_data={"team[name]": name, "team[permission]": permission}

for repo in repos:
team_data["team[repo_names]"] = "%s/%s" % (organization, repo)
team_data["team[repo_names][]"] = "%s/%s" % (organization, repo)

return self.get_values(organization, 'teams', post_data=team_data, method='POST')