|
| create ($user, $repo, $pullId, $body, $commitId, $filePath, $position) |
|
| createReply ($user, $repo, $pullId, $body, $inReplyTo) |
|
| delete ($user, $repo, $commentId) |
|
| edit ($user, $repo, $commentId, $body) |
|
| get ($user, $repo, $commentId) |
|
| getList ($user, $repo, $pullId, $page=0, $limit=0) |
|
| __get ($name) |
|
| __construct (Registry $options=null, JGithubHttp $client=null) |
|
GitHub API Pulls Comments class for the Joomla Platform.
https://developer.github.com/v3/pulls/comments/
- Depuis
- 3.3 (CMS)
- Obsolète:
- 4.0 Use the
joomla/github
package via Composer instead
◆ create()
create |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$pullId, |
|
|
|
$body, |
|
|
|
$commitId, |
|
|
|
$filePath, |
|
|
|
$position |
|
) |
| |
Method to create a comment on a pull request.
- Paramètres
-
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $pullId | The pull request number. |
string | $body | The comment body text. |
string | $commitId | The SHA1 hash of the commit to comment on. |
string | $filePath | The Relative path of the file to comment on. |
string | $position | The line index in the diff to comment on. |
- Exceptions
-
- Depuis
- 1.7.3
- Renvoie
- object
Références $data, $path, $position, $user, et json_encode.
◆ createReply()
createReply |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$pullId, |
|
|
|
$body, |
|
|
|
$inReplyTo |
|
) |
| |
Method to create a comment in reply to another comment.
- Paramètres
-
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $pullId | The pull request number. |
string | $body | The comment body text. |
integer | $inReplyTo | The id of the comment to reply to. |
- Exceptions
-
- Depuis
- 1.7.3
- Renvoie
- object
Références $data, $path, $user, et json_encode.
◆ delete()
delete |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$commentId |
|
) |
| |
Method to delete a comment on a pull request.
- Paramètres
-
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $commentId | The id of the comment to delete. |
- Exceptions
-
- Depuis
- 1.7.3
- Renvoie
- void
Références $path, et $user.
◆ edit()
edit |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$commentId, |
|
|
|
$body |
|
) |
| |
Method to update a comment on a pull request.
- Paramètres
-
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $commentId | The id of the comment to update. |
string | $body | The new body text for the comment. |
- Exceptions
-
- Depuis
- 1.7.3
- Renvoie
- object
Références $data, $path, $user, et json_encode.
◆ get()
get |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$commentId |
|
) |
| |
Method to get a specific comment on a pull request.
- Paramètres
-
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $commentId | The comment id to get. |
- Exceptions
-
- Depuis
- 1.7.3
- Renvoie
- object
Références $path, et $user.
◆ getList()
getList |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$pullId, |
|
|
|
$page = 0 , |
|
|
|
$limit = 0 |
|
) |
| |
Method to get the list of comments on a pull request.
- Paramètres
-
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $pullId | The pull request number. |
integer | $page | The page number from which to get items. |
integer | $limit | The number of items on a page. |
- Exceptions
-
- Depuis
- 1.7.3
- Renvoie
- array
Références $limit, $path, et $user.
La documentation de cette classe a été générée à partir du fichier suivant :