Added missing methods to keep the API from breaking

added tests for addCollaborators()
This commit is contained in:
James Vaughn
2020-02-01 22:39:14 -06:00
parent 7916600a7b
commit 6576beae76
12 changed files with 713 additions and 0 deletions

View File

@@ -852,6 +852,30 @@ public class GHRepository extends GHObject {
addCollaborators(perm, asList(users));
}
/**
* Add collaborators.
*
* @param users
* the users
* @throws IOException
* the io exception
*/
public void addCollaborators(GHUser... users) throws IOException {
addCollaborators(asList(users));
}
/**
* Add collaborators.
*
* @param users
* the users
* @throws IOException
* the io exception
*/
public void addCollaborators(List<GHUser> users) throws IOException {
modifyCollaborators(users, "PUT");
}
/**
* Add collaborators.
*