mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-23 15:50:48 +00:00
Added missing methods to keep the API from breaking
added tests for addCollaborators()
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user