We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c4b2ae commit d870d21Copy full SHA for d870d21
src/main/java/org/kohsuke/github/GHTeam.java
@@ -5,7 +5,6 @@
5
6
import java.io.IOException;
7
import java.net.URL;
8
-import java.util.Locale;
9
import java.util.Map;
10
import java.util.Objects;
11
import java.util.Optional;
@@ -14,6 +13,8 @@
14
13
15
import javax.annotation.Nonnull;
16
+import static org.kohsuke.github.GitHubRequest.transformEnum;
17
+
18
/**
19
* A team in GitHub organization.
20
*
@@ -162,7 +163,7 @@ public PagedIterable<GHUser> listMembers(String role) throws IOException {
162
163
* the io exception
164
*/
165
public PagedIterable<GHUser> listMembers(Role role) throws IOException {
- return listMembers(role.name().toLowerCase(Locale.ROOT));
166
+ return listMembers(transformEnum(role));
167
}
168
169
0 commit comments