class CommentsClient

Methods

__construct(Curl $curl, string $api_url, TencentAI $tencent_ai)

No description

mixed
create(string $repo_full_name, int $issue_number, string $body)

Create a comment.

mixed
list(string $repo_full_name, int $issue_number)

List comments on an issue.

mixed
listInRepository(string $repo_full_name)

List comments in a repository.

mixed
getSingle(string $repo_full_name, int $comment_id)

Get a single comment.

void
edit(string $repo_full_name, int $comment_id, string $body)

Edit a comment.

void
delete(string $repo_full_name, int $comment_id)

Delete a comment.

Details

at line 24
__construct(Curl $curl, string $api_url, TencentAI $tencent_ai)

Parameters

Curl $curl
string $api_url
TencentAI $tencent_ai

at line 42
mixed create(string $repo_full_name, int $issue_number, string $body)

Create a comment.

201

Parameters

string $repo_full_name
int $issue_number
string $body

Return Value

mixed

Exceptions

Exception

at line 73
mixed list(string $repo_full_name, int $issue_number)

List comments on an issue.

Parameters

string $repo_full_name
int $issue_number

Return Value

mixed

Exceptions

Exception

at line 87
mixed listInRepository(string $repo_full_name)

List comments in a repository.

Parameters

string $repo_full_name

Return Value

mixed

Exceptions

Exception

at line 101
mixed getSingle(string $repo_full_name, int $comment_id)

Get a single comment.

Parameters

string $repo_full_name
int $comment_id

Return Value

mixed

Exceptions

Exception

at line 113
void edit(string $repo_full_name, int $comment_id, string $body)

Edit a comment.

Parameters

string $repo_full_name
int $comment_id
string $body

Return Value

void

Exceptions

Exception

at line 135
void delete(string $repo_full_name, int $comment_id)

Delete a comment.

204.

Parameters

string $repo_full_name
int $comment_id

Return Value

void

Exceptions

Exception