Commit 22a0f9d1 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

gitlab: fix membership addition method

parent e0d61fdd
......@@ -154,9 +154,9 @@ impl Gitlab {
self._get(&format!("projects/{}/members/{}", project, user))
}
/// Get a team member of a project.
pub fn add_user_to_team(&self, project: ProjectId, user: UserId, access: AccessLevel)
-> GitlabResult<Member> {
/// Add a user to a project.
pub fn add_user_to_project(&self, project: ProjectId, user: UserId, access: AccessLevel)
-> GitlabResult<Member> {
let user_str = format!("{}", user);
let access_str = format!("{}", access);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment