Skip to content

Commit dc84fc2

Browse files
ScottSuarezmelinath
authored andcommitted
Promote team membership check to approve PR builds (GoogleCloudPlatform#13825)
Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
1 parent bddf794 commit dc84fc2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.ci/magician/github/membership.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ func (gh *Client) GetUserType(user string) UserType {
5151
}
5252

5353
if gh.IsTeamMember("GoogleCloudPlatform", "terraform", user) {
54-
fmt.Printf("Debug test --- User '%s' is an active member of the 'terraform' team in 'GoogleCloudPlatform' organization\n", user)
54+
fmt.Println("User is an active member of the 'terraform' team in 'GoogleCloudPlatform' organization")
55+
return GooglerUserType
5556
} else {
56-
fmt.Printf("Debug test --- User '%s' is not an active member of the 'terraform' team in 'GoogleCloudPlatform' organization\n", user)
57+
fmt.Printf("User '%s' is not an active member of the 'terraform' team in 'GoogleCloudPlatform' organization\n", user)
5758
}
5859

5960
if gh.IsOrgMember(user, "GoogleCloudPlatform") {

0 commit comments

Comments
 (0)