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 Sep 17, 2019. It is now read-only.

Commit ebf39ea

Browse filesBrowse files
committed
1 parent 556786f commit ebf39ea
Copy full SHA for ebf39ea

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+5
-1
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
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,13 @@ public Map<String,GHRepository> getRepositories() throws IOException {
7878

7979
/**
8080
* Adds a member to the team.
81+
*
82+
* The user will be invited to the organization if required.
83+
*
84+
* @since 1.59
8185
*/
8286
public void add(GHUser u) throws IOException {
83-
org.root.retrieve().method("PUT").to(api("/members/" + u.getLogin()), null);
87+
org.root.retrieve().method("PUT").to(api("/memberships/" + u.getLogin()), null);
8488
}
8589

8690
/**

0 commit comments

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