PHP Класс Gitlab\Api\Repositories

Наследование: extends Gitlab\Api\AbstractApi
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
encodeBranch ( string $path ) : string

Описание методов

archive() публичный Метод

You can then save the content with the tar.gz extension
public archive ( integer $project_id, array $params = [] ) : mixed
$project_id integer
$params array
Результат mixed

blob() публичный Метод

public blob ( integer $project_id, string $sha, string $filepath ) : mixed
$project_id integer
$sha string
$filepath string
Результат mixed

branch() публичный Метод

public branch ( integer $project_id, integer $branch_id ) : mixed
$project_id integer
$branch_id integer
Результат mixed

branches() публичный Метод

public branches ( integer $project_id ) : mixed
$project_id integer
Результат mixed

commit() публичный Метод

public commit ( integer $project_id, $sha ) : mixed
$project_id integer
$sha
Результат mixed

commitBuilds() публичный Метод

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
Результат mixed

commitComments() публичный Метод

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
Результат mixed

commits() публичный Метод

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
Результат mixed

compare() публичный Метод

public compare ( integer $project_id, string $fromShaOrMaster, string $toShaOrMaster ) : mixed
$project_id integer
$fromShaOrMaster string
$toShaOrMaster string
Результат mixed

contributors() публичный Метод

public contributors ( integer $project_id ) : mixed
$project_id integer
Результат mixed

createBranch() публичный Метод

public createBranch ( integer $project_id, string $branch_name, string $ref ) : mixed
$project_id integer
$branch_name string
$ref string
Результат mixed

createCommitComment() публичный Метод

public createCommitComment ( integer $project_id, string $sha, string $note, array $params = [] ) : mixed
$project_id integer
$sha string
$note string
$params array
Результат mixed

createFile() публичный Метод

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
Результат mixed

createRelease() публичный Метод

public createRelease ( integer $project_id, string $tag_name, string $description ) : mixed
$project_id integer
$tag_name string
$description string
Результат mixed

createTag() публичный Метод

public createTag ( integer $project_id, string $name, string $ref, string $message = null ) : mixed
$project_id integer
$name string
$ref string
$message string
Результат mixed

deleteBranch() публичный Метод

public deleteBranch ( integer $project_id, string $branch_name ) : mixed
$project_id integer
$branch_name string
Результат mixed

deleteFile() публичный Метод

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
Результат mixed

diff() публичный Метод

public diff ( integer $project_id, string $sha ) : string
$project_id integer
$sha string
Результат string

encodeBranch() защищенный Метод

protected encodeBranch ( string $path ) : string
$path string
Результат string

getFile() публичный Метод

public getFile ( integer $project_id, string $file_path, string $ref ) : mixed
$project_id integer
$file_path string
$ref string
Результат mixed

protectBranch() публичный Метод

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
Результат mixed

tags() публичный Метод

public tags ( integer $project_id ) : mixed
$project_id integer
Результат mixed

tree() публичный Метод

public tree ( integer $project_id, array $params = [] ) : mixed
$project_id integer
$params array
Результат mixed

unprotectBranch() публичный Метод

public unprotectBranch ( integer $project_id, string $branch_name ) : mixed
$project_id integer
$branch_name string
Результат mixed

updateFile() публичный Метод

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
Результат mixed

updateRelease() публичный Метод

public updateRelease ( integer $project_id, string $tag_name, string $description ) : mixed
$project_id integer
$tag_name string
$description string
Результат mixed