Skip to content

Commit 851ce8c

Browse files
mirko-jtlm1guelpf
authored andcommitted
Add missing param visibility for snippet creation
1 parent 73af26a commit 851ce8c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/Gitlab/Api/Snippets.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ public function show($project_id, $snippet_id)
2828
* @param string $code
2929
* @return mixed
3030
*/
31-
public function create($project_id, $title, $filename, $code)
31+
public function create($project_id, $title, $filename, $code, $visibility)
3232
{
3333
return $this->post($this->getProjectPath($project_id, 'snippets'), array(
34-
'title' => $title,
35-
'file_name' => $filename,
36-
'code' => $code
34+
'title' => $title,
35+
'file_name' => $filename,
36+
'code' => $code,
37+
'visibility' => $visibility
3738
));
3839
}
3940

0 commit comments

Comments
 (0)