This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
[$350] Investigate Github organisation invite functionality #414
Closed
Description
@afrisalyp - After discussing internally with Topcoder, we would like the Git link functionality for Github to also support organisation and team functionality, if possible.
We've investigated that in the past but haven't had much luck: #111 and #294
What we would like to have happen:
If a user hits the link to join a Github team:
- Invite the user to the organisation (using a service account / PAT that has access to invite. We can't use the copilot token because the copilot may not be able to invite to the org)
- Prompt the user to login to Github and show the OAuth permissions requested
- User agrees to OAuth permissions
- Get the user's OAuth token
- Automatically accept the organisation invite on their behalf
- Add the user to the team
- Show the success page in the Topcoder-X UI
If a user is already in the organisation, the flow should still work and just add the user to the team.