Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques | |
create ($user, $repo, $message, $tree, array $parents=array()) | |
createCommitComment ($user, $repo, $sha, $comment, $line, $filepath, $position) | |
deleteCommitComment ($user, $repo, $id) | |
editCommitComment ($user, $repo, $id, $comment) | |
getCommit ($user, $repo, $sha, $page=0, $limit=0) | |
getCommitComment ($user, $repo, $id) | |
getCommitComments ($user, $repo, $sha, $page=0, $limit=0) | |
getDiff ($user, $repo, $base, $head) | |
getList ($user, $repo, $page=0, $limit=0) | |
getListComments ($user, $repo, $page=0, $limit=0) | |
Fonctions membres publiques inherited from JGithubObject | |
__construct (JRegistry $options=null, JGithubHttp $client=null) |
Additional Inherited Members | |
Fonctions membres protégées inherited from JGithubObject | |
fetchUrl ($path, $page=0, $limit=0) | |
processResponse (JHttpResponse $response, $expectedCode=200) | |
Attributs protégés inherited from JGithubObject | |
$options | |
$client |
Définition à la ligne 19 du fichier commits.php.
JGithubCommits::create | ( | $user, | |
$repo, | |||
$message, | |||
$tree, | |||
array | $parents = array() |
||
) |
Method to create a commit.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $message | The commit message. |
string | $tree | SHA of the tree object this commit points to. |
array | $parents | Array of the SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided. For a merge commit, an array of more than one should be provided. |
Définition à la ligne 37 du fichier commits.php.
JGithubCommits::createCommitComment | ( | $user, | |
$repo, | |||
$sha, | |||
$comment, | |||
$line, | |||
$filepath, | |||
$position | |||
) |
Method to create a comment on a commit.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $sha | The SHA of the commit to comment on. |
string | $comment | The text of the comment. |
integer | $line | The line number of the commit to comment on. |
string | $filepath | A relative path to the file to comment on within the commit. |
integer | $position | Line index in the diff to comment on. |
Définition à la ligne 75 du fichier commits.php.
JGithubCommits::deleteCommitComment | ( | $user, | |
$repo, | |||
$id | |||
) |
Method to delete a comment on a commit.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $id | The ID of the comment to edit. |
Définition à la ligne 115 du fichier commits.php.
JGithubCommits::editCommitComment | ( | $user, | |
$repo, | |||
$id, | |||
$comment | |||
) |
Method to edit a comment on a commit.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $id | The ID of the comment to edit. |
string | $comment | The text of the comment. |
Définition à la ligne 146 du fichier commits.php.
JGithubCommits::getCommit | ( | $user, | |
$repo, | |||
$sha, | |||
$page = 0 , |
|||
$limit = 0 |
|||
) |
Method to get a single commit for a repository.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $sha | The SHA of the commit to retrieve. |
integer | $page | Page to request |
integer | $limit | Number of results to return per page |
Définition à la ligne 184 du fichier commits.php.
JGithubCommits::getCommitComment | ( | $user, | |
$repo, | |||
$id | |||
) |
Method to get a single comment on a commit.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $id | ID of the comment to retrieve |
Définition à la ligne 214 du fichier commits.php.
JGithubCommits::getCommitComments | ( | $user, | |
$repo, | |||
$sha, | |||
$page = 0 , |
|||
$limit = 0 |
|||
) |
Method to get a list of comments for a single commit for a repository.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $sha | The SHA of the commit to retrieve. |
integer | $page | Page to request |
integer | $limit | Number of results to return per page |
Définition à la ligne 246 du fichier commits.php.
JGithubCommits::getDiff | ( | $user, | |
$repo, | |||
$base, | |||
$head | |||
) |
Method to get a diff for two commits.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $base | The base of the diff, either a commit SHA or branch. |
string | $head | The head of the diff, either a commit SHA or branch. |
Définition à la ligne 277 du fichier commits.php.
JGithubCommits::getList | ( | $user, | |
$repo, | |||
$page = 0 , |
|||
$limit = 0 |
|||
) |
Method to list commits for a repository.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $page | Page to request |
integer | $limit | Number of results to return per page |
Définition à la ligne 308 du fichier commits.php.
JGithubCommits::getListComments | ( | $user, | |
$repo, | |||
$page = 0 , |
|||
$limit = 0 |
|||
) |
Method to get a list of commit comments for a repository.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $page | Page to request |
integer | $limit | Number of results to return per page |
Définition à la ligne 339 du fichier commits.php.