Skip to content

Commit

Permalink
Merge pull request #266 from Seretos/master
Browse files Browse the repository at this point in the history
fix link for pipeline creation
  • Loading branch information
fbourigault authored Oct 11, 2017
2 parents f139e4e + 4501728 commit 010fe9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Gitlab/Api/Projects.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function pipeline($project_id, $pipeline_id)
*/
public function createPipeline($project_id, $commit_ref)
{
return $this->post($this->getProjectPath($project_id, 'pipelines'), array(
return $this->post($this->getProjectPath($project_id, 'pipeline'), array(
'ref' => $commit_ref));
}

Expand Down
2 changes: 1 addition & 1 deletion test/Gitlab/Tests/Api/ProjectsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function shouldCreatePipeline()
$api = $this->getApiMock();
$api->expects($this->once())
->method('post')
->with('projects/1/pipelines', array('ref' => 'test-pipeline'))
->with('projects/1/pipeline', array('ref' => 'test-pipeline'))
->will($this->returnValue($expectedArray))
;

Expand Down

0 comments on commit 010fe9f

Please sign in to comment.