lib/github_api/orgs/teams.rb in github_api-0.5.3 vs lib/github_api/orgs/teams.rb in github_api-0.5.4

- old
+ new

@@ -207,12 +207,15 @@ false end alias :team_repository? :team_repo? # Add a team repository + # # In order to add a repo to a team, the authenticated user must be - # an owner of the org that the team is associated with. + # an owner of the org that the team is associated with. Also, the repo + # must be owned by the organization, or a direct for of a repo owned + # by the organization. # # = Examples # github = Github.new :oauth_token => '...' # github.orgs.teams.add_repo 'team-name', 'user-name', 'repo-name' # @@ -222,11 +225,12 @@ put_request("/teams/#{team_name}/repos/#{user_name}/#{repo_name}", params) end alias :add_repository :add_repo # Remove a team repository + # # In order to add a repo to a team, the authenticated user must be - # an owner of the org that the team is associated with. + # an owner of the org that the team is associated with. # note: This does not delete the repo, it just removes it from the team. # # = Examples # github = Github.new :oauth_token => '...' # github.orgs.teams.remove_repo 'team-name', 'user-name', 'repo-name'