func (s *GithubSCM) UpdateEnrollment(ctx context.Context, opt *UpdateEnrollmentOptions) (*Repository, error) {
UpdateEnrollment performs several steps for case qf.Enrollment_STUDENT:. It is unclear if Steps 3 and 4 require that Step 2 (acceptOrgInvitation) be successfully completed with a StatusOK or if it is sufficient with a StatusAccepted to continue with Steps 3 and 4. Or if we need to implement a waiting process similar to the waitForRepository for Step 2.
We can test this by commenting out Step 2 from UpdateEnrollment.
The GitHub API is a bit awkward to work with TBH.
UpdateEnrollmentperforms several steps forcase qf.Enrollment_STUDENT:. It is unclear if Steps 3 and 4 require that Step 2 (acceptOrgInvitation) be successfully completed with aStatusOKor if it is sufficient with aStatusAcceptedto continue with Steps 3 and 4. Or if we need to implement a waiting process similar to thewaitForRepositoryfor Step 2.We can test this by commenting out Step 2 from
UpdateEnrollment.The GitHub API is a bit awkward to work with TBH.