{"action":"opened","issue":{"url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/292","labels_url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/292/comments","events_url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/292/events","html_url":"https://github.com/KnpLabs/php-github-api/issues/292","id":93286560,"number":292,"title":"Adding a team to a repo missing permissions","user":{"login":"timbeks","id":2317250,"avatar_url":"https://avatars.githubusercontent.com/u/2317250?v=3","gravatar_id":"","url":"https://api.github.com/users/timbeks","html_url":"https://github.com/timbeks","followers_url":"https://api.github.com/users/timbeks/followers","following_url":"https://api.github.com/users/timbeks/following{/other_user}","gists_url":"https://api.github.com/users/timbeks/gists{/gist_id}","starred_url":"https://api.github.com/users/timbeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbeks/subscriptions","organizations_url":"https://api.github.com/users/timbeks/orgs","repos_url":"https://api.github.com/users/timbeks/repos","events_url":"https://api.github.com/users/timbeks/events{/privacy}","received_events_url":"https://api.github.com/users/timbeks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-06T14:02:59Z","updated_at":"2015-07-06T14:02:59Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to add a team to a repository with the pull/push/admin rights, but the original addTeam with an array of strings for the repo's is deprecated. According to the documentation (https://developer.github.com/v3/orgs/teams/#add-team-repo) you should use teams->addRepository. But at this time, you can't supply the argument anywhere.\r\n\r\nAlso, in the methods of team, it uses for repository()/addRepository()/removeRepository() the var $username, but this should be $organization.\r\n"}}