Skip to content

Commit 0f32783

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

17 files changed

Lines changed: 5 additions & 5 deletions

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);

src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testUpdatePrivacy/__files/orgs_github-api-test-org-ecf0c232-2c2b-4580-b12c-ddc025656f64.json renamed to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/__files/orgs_github-api-test-org-ecf0c232-2c2b-4580-b12c-ddc025656f64.json

File renamed without changes.

src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testUpdatePrivacy/__files/orgs_github-api-test-org_teams-6cee550b-e151-4598-8736-68d408a7028f.json renamed to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/__files/orgs_github-api-test-org_teams-6cee550b-e151-4598-8736-68d408a7028f.json

File renamed without changes.

src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testUpdatePrivacy/__files/orgs_github-api-test-org_teams-9ce59a51-f556-4b3d-ac00-a4bf313ae3a8.json renamed to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/__files/orgs_github-api-test-org_teams-9ce59a51-f556-4b3d-ac00-a4bf313ae3a8.json

File renamed without changes.

src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testUpdatePrivacy/__files/orgs_github-api-test-org_teams-9f5e2094-9034-4769-bb8c-0d82ff6db9c5.json renamed to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/__files/orgs_github-api-test-org_teams-9f5e2094-9034-4769-bb8c-0d82ff6db9c5.json

File renamed without changes.

src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testUpdatePrivacy/__files/teams_3618279-c20ae9c8-4d3b-4c67-bac6-c33c9ad7ac3e.json renamed to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/__files/teams_3618279-c20ae9c8-4d3b-4c67-bac6-c33c9ad7ac3e.json

File renamed without changes.

src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testUpdatePrivacy/__files/teams_3618279-f0948c22-babf-430d-beb6-2daf5efd7541.json renamed to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/__files/teams_3618279-f0948c22-babf-430d-beb6-2daf5efd7541.json

File renamed without changes.

src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testUpdatePrivacy/__files/user-bc58c48e-2441-4377-aa9a-e58df4073c39.json renamed to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/__files/user-bc58c48e-2441-4377-aa9a-e58df4073c39.json

File renamed without changes.

0 commit comments

Comments
 (0)