Skip to content

Commit dcfced3

Browse files
committed
Added blob endpoint for repositories
1 parent 87b3c7b commit dcfced3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/Gitlab/Api/Repositories.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,11 @@ public function unprotectBranch($project_id, $branch_id)
4444
return $this->put('projects/'.urlencode($project_id).'/repository/branches/'.urlencode($branch_id).'/unprotect');
4545
}
4646

47+
public function blob($project_id, $sha, $filepath)
48+
{
49+
return $this->get('projects/'.urlencode($project_id).'/repository/commits/'.urlencode($sha).'/blob', array(
50+
'filepath' => $filepath
51+
));
52+
}
53+
4754
}

0 commit comments

Comments
 (0)