Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nicholas Bailey
rust-gitlab
Commits
22a0f9d1
Commit
22a0f9d1
authored
Oct 05, 2016
by
Ben Boeckel
Browse files
gitlab: fix membership addition method
parent
e0d61fdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gitlab.rs
View file @
22a0f9d1
...
...
@@ -154,9 +154,9 @@ impl Gitlab {
self
._get
(
&
format!
(
"projects/{}/members/{}"
,
project
,
user
))
}
///
Get a team memb
er o
f
a project.
pub
fn
add_user_to_
team
(
&
self
,
project
:
ProjectId
,
user
:
UserId
,
access
:
AccessLevel
)
->
GitlabResult
<
Member
>
{
///
Add a us
er
t
o 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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment