Skip to content

Commit 0f32783

Browse files
committed
Revert updatePrivacy
1 parent 4cc90b4 commit 0f32783

17 files changed

+5
-5
lines changed

src/main/java/org/kohsuke/github/GHTeam.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void setDescription(String description) throws IOException {
133133
* @throws IOException
134134
* the io exception
135135
*/
136-
public void updatePrivacy(Privacy privacy) throws IOException {
136+
public void setPrivacy(Privacy privacy) throws IOException {
137137
root.createRequest().method("PATCH").with("privacy", privacy).withUrlPath(api("")).send();
138138
}
139139

src/main/java/org/kohsuke/github/GHTeamBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* Creates a team.
88
*
9-
* https://developer.github.com/v3/teams/#parameters
9+
* https://developer.github.com/v3/teams/#create-team
1010
*/
1111
public class GHTeamBuilder {
1212

src/test/java/org/kohsuke/github/GHTeamTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ public void testSetDescription() throws IOException {
3232
}
3333

3434
@Test
35-
public void testUpdatePrivacy() throws IOException {
35+
public void testSetPrivacy() throws IOException {
3636
String teamSlug = "dummy-team";
3737
Privacy privacy = Privacy.CLOSED;
3838

3939
// Set the privacy.
4040
GHTeam team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug);
41-
team.updatePrivacy(privacy);
41+
team.setPrivacy(privacy);
4242

4343
// Check that it was set correctly.
4444
team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug);
@@ -47,7 +47,7 @@ public void testUpdatePrivacy() throws IOException {
4747
privacy = Privacy.SECRET;
4848

4949
// Set the privacy.
50-
team.updatePrivacy(privacy);
50+
team.setPrivacy(privacy);
5151

5252
// Check that it was set correctly.
5353
team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug);

0 commit comments

Comments
 (0)