Closed nerdalert closed 6 months ago
Membership is already checked in the code block prior:
teamMembership, response, err := client.Teams.GetTeamMembershipBySlug(ctx, prComment.repoOrg, teamName, prComment.author)
if err != nil {
if response.StatusCode == http.StatusNotFound {
h.Logger.Infof("User %s is not a part of the team %s : %v", prComment.author, teamName, err)
return false, nil
}
return false, err
}
231