This affects other functions that relate to Teams and Organizations, so I plan to make more PRs as I work with those functions and can verify how they should change.
If I try to add someone to a Team within an Organization and they are not yet a member of any Team within the Organization, the existing add.member.to.team() function fails and does not trigger an invitation to join the Team/Organization:
In August 2014 GitHub announced a breaking change to the API for how organization owners add new members to their organization:
https://developer.github.com/changes/2014-08-05-team-memberships-api/
That has come into full effect now.
Here's the deprecation notice in the context of API documentation:
https://developer.github.com/v3/orgs/teams/#get-team-member
And here's how things should be done now (which I do in this PR):
https://developer.github.com/v3/orgs/teams/#get-team-membership
This affects other functions that relate to Teams and Organizations, so I plan to make more PRs as I work with those functions and can verify how they should change.
If I try to add someone to a Team within an Organization and they are not yet a member of any Team within the Organization, the existing
add.member.to.team()
function fails and does not trigger an invitation to join the Team/Organization: