Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 3, 2021. It is now read-only.

Commit 6599605

Browse filesBrowse files
committed
Massaged changes to follow the convention
1 parent ae1ec8b commit 6599605
Copy full SHA for 6599605

File tree

Expand file treeCollapse file tree

1 file changed

+11
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-5
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHTeam.java
+11-5Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ public class GHTeam {
1919
protected /*final*/ GHOrganization org;
2020

2121
/** Member's role in a team */
22-
public enum ROLE {
23-
MEMBER, // A normal member of the team
24-
MAINTAINER // Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.
25-
};
22+
public enum Role {
23+
/**
24+
* A normal member of the team
25+
*/
26+
MEMBER,
27+
/**
28+
* Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.
29+
*/
30+
MAINTAINER
31+
}
2632

2733
/*package*/ GHTeam wrapUp(GHOrganization owner) {
2834
this.org = owner;
@@ -132,7 +138,7 @@ public void add(GHUser u) throws IOException {
132138
*
133139
* @throws IOException
134140
*/
135-
public void add(GHUser user, ROLE role) throws IOException {
141+
public void add(GHUser user, Role role) throws IOException {
136142
org.root.retrieve().method("PUT")
137143
.with("role", role.name())
138144
.to(api("/memberships/" + user.getLogin()), null);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.