|
| getListRepository ($user, $repo, $page=0, $limit=0) |
|
| getList ($user, $repo, $sha, $page=0, $limit=0) |
|
| get ($user, $repo, $id) |
|
| edit ($user, $repo, $id, $comment) |
|
| delete ($user, $repo, $id) |
|
| create ($user, $repo, $sha, $comment, $line, $filepath, $position) |
|
| __get ($name) |
|
| __construct (Registry $options=null, JGithubHttp $client=null) |
|
GitHub API Repositories Comments class for the Joomla Platform.
https://developer.github.com/v3/repos/comments
- Depuis
- 1.7.3
- Obsolète:
- 4.0 Use the
joomla/github
package via Composer instead
◆ create()
create |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$sha, |
|
|
|
$comment, |
|
|
|
$line, |
|
|
|
$filepath, |
|
|
|
$position |
|
) |
| |
Method to create a comment on a commit.
- Paramètres
-
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. |
- Renvoie
- object
- Depuis
- 3.0.0
Références $data, $path, $position, $user, et json_encode.
◆ delete()
delete |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$id |
|
) |
| |
Method to delete a comment on a commit.
- Paramètres
-
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. |
- Renvoie
- object
- Depuis
- 3.0.0
Références $id, $path, et $user.
◆ edit()
edit |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$id, |
|
|
|
$comment |
|
) |
| |
Method to edit a comment on a commit.
- Paramètres
-
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. |
- Renvoie
- object
- Depuis
- 3.0.0
Références $data, $id, $path, $user, et json_encode.
◆ get()
get |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$id |
|
) |
| |
Method to get a single comment on a commit.
- Paramètres
-
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 |
- Renvoie
- array
- Depuis
- 3.0.0
Références $id, $path, et $user.
◆ getList()
getList |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$sha, |
|
|
|
$page = 0 , |
|
|
|
$limit = 0 |
|
) |
| |
Method to get a list of comments for a single commit for a repository.
- Paramètres
-
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 |
- Renvoie
- array
- Depuis
- 3.0.0
Références $limit, $path, et $user.
◆ getListRepository()
getListRepository |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$page = 0 , |
|
|
|
$limit = 0 |
|
) |
| |
Method to get a list of commit comments for a repository.
- Paramètres
-
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 |
- Renvoie
- array
- Depuis
- 3.0.0
Références $limit, $path, et $user.
La documentation de cette classe a été générée à partir du fichier suivant :