lib/lita/handlers/github_repo.rb in lita-github-0.2.0 vs lib/lita/handlers/github_repo.rb in lita-github-0.2.1
- old
+ new
@@ -328,11 +328,11 @@
def create_repo(org, repo, opts)
full_name = rpo(org, repo)
reply = nil
begin
octo.create_repository(repo, opts)
- opts[:other_teams].each do |team|
- add_team_to_repo(full_name, team)
+ opts[:other_teams].each do |team_id|
+ add_team_to_repo(full_name, gh_team(org, team_id))
end if opts.key?(:other_teams)
ensure
if repo?(full_name)
repo_url = "https://github.com/#{full_name}"
reply = t('repo_create.pass', org: org, repo: repo, repo_url: repo_url)