Skip to content

Commit 010fe9f

Browse files
authored
Merge pull request #266 from Seretos/master
fix link for pipeline creation
2 parents f139e4e + 4501728 commit 010fe9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Gitlab/Api/Projects.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function pipeline($project_id, $pipeline_id)
214214
*/
215215
public function createPipeline($project_id, $commit_ref)
216216
{
217-
return $this->post($this->getProjectPath($project_id, 'pipelines'), array(
217+
return $this->post($this->getProjectPath($project_id, 'pipeline'), array(
218218
'ref' => $commit_ref));
219219
}
220220

test/Gitlab/Tests/Api/ProjectsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function shouldCreatePipeline()
261261
$api = $this->getApiMock();
262262
$api->expects($this->once())
263263
->method('post')
264-
->with('projects/1/pipelines', array('ref' => 'test-pipeline'))
264+
->with('projects/1/pipeline', array('ref' => 'test-pipeline'))
265265
->will($this->returnValue($expectedArray))
266266
;
267267

0 commit comments

Comments
 (0)