PHP Class Gitlab\Api\Repositories

Inheritance: extends Gitlab\Api\AbstractApi
Afficher le fichier Open project: m4tthumphrey/php-gitlab-api

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
encodeBranch ( string $path ) : string

Method Details

archive() public méthode

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

blob() public méthode

public blob ( integer $project_id, string $sha, string $filepath ) : mixed
$project_id integer
$sha string
$filepath string
Résultat mixed

branch() public méthode

public branch ( integer $project_id, integer $branch_id ) : mixed
$project_id integer
$branch_id integer
Résultat mixed

branches() public méthode

public branches ( integer $project_id ) : mixed
$project_id integer
Résultat mixed

commit() public méthode

public commit ( integer $project_id, $sha ) : mixed
$project_id integer
$sha
Résultat mixed

commitBuilds() public méthode

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
Résultat mixed

commitComments() public méthode

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
Résultat mixed

commits() public méthode

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
Résultat mixed

compare() public méthode

public compare ( integer $project_id, string $fromShaOrMaster, string $toShaOrMaster ) : mixed
$project_id integer
$fromShaOrMaster string
$toShaOrMaster string
Résultat mixed

contributors() public méthode

public contributors ( integer $project_id ) : mixed
$project_id integer
Résultat mixed

createBranch() public méthode

public createBranch ( integer $project_id, string $branch_name, string $ref ) : mixed
$project_id integer
$branch_name string
$ref string
Résultat mixed

createCommitComment() public méthode

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

createFile() public méthode

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
Résultat mixed

createRelease() public méthode

public createRelease ( integer $project_id, string $tag_name, string $description ) : mixed
$project_id integer
$tag_name string
$description string
Résultat mixed

createTag() public méthode

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

deleteBranch() public méthode

public deleteBranch ( integer $project_id, string $branch_name ) : mixed
$project_id integer
$branch_name string
Résultat mixed

deleteFile() public méthode

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
Résultat mixed

diff() public méthode

public diff ( integer $project_id, string $sha ) : string
$project_id integer
$sha string
Résultat string

encodeBranch() protected méthode

protected encodeBranch ( string $path ) : string
$path string
Résultat string

getFile() public méthode

public getFile ( integer $project_id, string $file_path, string $ref ) : mixed
$project_id integer
$file_path string
$ref string
Résultat mixed

protectBranch() public méthode

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
Résultat mixed

tags() public méthode

public tags ( integer $project_id ) : mixed
$project_id integer
Résultat mixed

tree() public méthode

public tree ( integer $project_id, array $params = [] ) : mixed
$project_id integer
$params array
Résultat mixed

unprotectBranch() public méthode

public unprotectBranch ( integer $project_id, string $branch_name ) : mixed
$project_id integer
$branch_name string
Résultat mixed

updateFile() public méthode

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
Résultat mixed

updateRelease() public méthode

public updateRelease ( integer $project_id, string $tag_name, string $description ) : mixed
$project_id integer
$tag_name string
$description string
Résultat mixed