PHP Class Gitlab\Api\Repositories

Inheritance: extends Gitlab\Api\AbstractApi
Show file Open project: m4tthumphrey/php-gitlab-api

Public Methods

Method Description
archive ( integer $project_id, array $params = [] ) : mixed File content is base64 encoded and placed in the "content" index of the returning array.
blob ( integer $project_id, string $sha, string $filepath ) : mixed
branch ( integer $project_id, integer $branch_id ) : mixed
branches ( integer $project_id ) : mixed
commit ( integer $project_id, $sha ) : mixed
commitBuilds ( integer $project_id, string $sha, string $scope = null, integer $page, integer $per_page = self::PER_PAGE ) : mixed
commitComments ( integer $project_id, string $sha, integer $page, integer $per_page = self::PER_PAGE ) : mixed
commits ( integer $project_id, integer $page, integer $per_page = self::PER_PAGE, null $ref_name = null ) : mixed
compare ( integer $project_id, string $fromShaOrMaster, string $toShaOrMaster ) : mixed
contributors ( integer $project_id ) : mixed
createBranch ( integer $project_id, string $branch_name, string $ref ) : mixed
createCommitComment ( integer $project_id, string $sha, string $note, array $params = [] ) : mixed
createFile ( integer $project_id, string $file_path, string $content, string $branch_name, string $commit_message, string $encoding = null ) : mixed
createRelease ( integer $project_id, string $tag_name, string $description ) : mixed
createTag ( integer $project_id, string $name, string $ref, string $message = null ) : mixed
deleteBranch ( integer $project_id, string $branch_name ) : mixed
deleteFile ( integer $project_id, string $file_path, string $branch_name, string $commit_message ) : mixed
diff ( integer $project_id, string $sha ) : string
getFile ( integer $project_id, string $file_path, string $ref ) : mixed
protectBranch ( integer $project_id, string $branch_name, boolean $devPush = false, boolean $devMerge = false ) : mixed
tags ( integer $project_id ) : mixed
tree ( integer $project_id, array $params = [] ) : mixed
unprotectBranch ( integer $project_id, string $branch_name ) : mixed
updateFile ( integer $project_id, string $file_path, string $content, string $branch_name, string $commit_message, string $encoding = null ) : mixed
updateRelease ( integer $project_id, string $tag_name, string $description ) : mixed

Protected Methods

Method Description
encodeBranch ( string $path ) : string

Method Details

archive() public method

You can then save the content with the tar.gz extension
public archive ( integer $project_id, array $params = [] ) : mixed
$project_id integer
$params array
return mixed

blob() public method

public blob ( integer $project_id, string $sha, string $filepath ) : mixed
$project_id integer
$sha string
$filepath string
return mixed

branch() public method

public branch ( integer $project_id, integer $branch_id ) : mixed
$project_id integer
$branch_id integer
return mixed

branches() public method

public branches ( integer $project_id ) : mixed
$project_id integer
return mixed

commit() public method

public commit ( integer $project_id, $sha ) : mixed
$project_id integer
$sha
return mixed

commitBuilds() public method

public commitBuilds ( integer $project_id, string $sha, string $scope = null, integer $page, integer $per_page = self::PER_PAGE ) : mixed
$project_id integer
$sha string
$scope string
$page integer
$per_page integer
return mixed

commitComments() public method

public commitComments ( integer $project_id, string $sha, integer $page, integer $per_page = self::PER_PAGE ) : mixed
$project_id integer
$sha string
$page integer
$per_page integer
return mixed

commits() public method

public commits ( integer $project_id, integer $page, integer $per_page = self::PER_PAGE, null $ref_name = null ) : mixed
$project_id integer
$page integer
$per_page integer
$ref_name null
return mixed

compare() public method

public compare ( integer $project_id, string $fromShaOrMaster, string $toShaOrMaster ) : mixed
$project_id integer
$fromShaOrMaster string
$toShaOrMaster string
return mixed

contributors() public method

public contributors ( integer $project_id ) : mixed
$project_id integer
return mixed

createBranch() public method

public createBranch ( integer $project_id, string $branch_name, string $ref ) : mixed
$project_id integer
$branch_name string
$ref string
return mixed

createCommitComment() public method

public createCommitComment ( integer $project_id, string $sha, string $note, array $params = [] ) : mixed
$project_id integer
$sha string
$note string
$params array
return mixed

createFile() public method

public createFile ( integer $project_id, string $file_path, string $content, string $branch_name, string $commit_message, string $encoding = null ) : mixed
$project_id integer
$file_path string
$content string
$branch_name string
$commit_message string
$encoding string
return mixed

createRelease() public method

public createRelease ( integer $project_id, string $tag_name, string $description ) : mixed
$project_id integer
$tag_name string
$description string
return mixed

createTag() public method

public createTag ( integer $project_id, string $name, string $ref, string $message = null ) : mixed
$project_id integer
$name string
$ref string
$message string
return mixed

deleteBranch() public method

public deleteBranch ( integer $project_id, string $branch_name ) : mixed
$project_id integer
$branch_name string
return mixed

deleteFile() public method

public deleteFile ( integer $project_id, string $file_path, string $branch_name, string $commit_message ) : mixed
$project_id integer
$file_path string
$branch_name string
$commit_message string
return mixed

diff() public method

public diff ( integer $project_id, string $sha ) : string
$project_id integer
$sha string
return string

encodeBranch() protected method

protected encodeBranch ( string $path ) : string
$path string
return string

getFile() public method

public getFile ( integer $project_id, string $file_path, string $ref ) : mixed
$project_id integer
$file_path string
$ref string
return mixed

protectBranch() public method

public protectBranch ( integer $project_id, string $branch_name, boolean $devPush = false, boolean $devMerge = false ) : mixed
$project_id integer
$branch_name string
$devPush boolean
$devMerge boolean
return mixed

tags() public method

public tags ( integer $project_id ) : mixed
$project_id integer
return mixed

tree() public method

public tree ( integer $project_id, array $params = [] ) : mixed
$project_id integer
$params array
return mixed

unprotectBranch() public method

public unprotectBranch ( integer $project_id, string $branch_name ) : mixed
$project_id integer
$branch_name string
return mixed

updateFile() public method

public updateFile ( integer $project_id, string $file_path, string $content, string $branch_name, string $commit_message, string $encoding = null ) : mixed
$project_id integer
$file_path string
$content string
$branch_name string
$commit_message string
$encoding string
return mixed

updateRelease() public method

public updateRelease ( integer $project_id, string $tag_name, string $description ) : mixed
$project_id integer
$tag_name string
$description string
return mixed