class Kernel

Methods

void
ping(string $content)

No description

void
push(string $json_content)

push.

status(string $content)

No description

void
issues(string $json_content)

"assigned", "unassigned", "labeled", "unlabeled", "opened", "edited", "closed" or "reopened" "milestoned", "demilestoned".

void
issue_comment(string $json_content)

"created", "edited", or "deleted".

array|void
pull_request(string $json_content)

Action.

watch()

Do Nothing.

fork()

Do Nothing.

release()

Do nothing.

int
create(string $content)

Create "repository", "branch", or "tag".

void
delete(string $json_content)

Delete tag or branch.

void
member(string $content)

action added deleted edited removed.

void
team_add(string $content)

No description

void
installation(string $json_content)

Any time a GitHub App is installed or uninstalled.

void
installation_repositories(string $json_content)

Any time a repository is added or removed from an installation.

void
integration_installation() deprecated

No description

void
integration_installation_repositories() deprecated

No description

void
check_suite(string $json_content)

Action.

void
check_run(string $json_content)

Action.

void
content_reference(string $json_content)

No description

void
repository(string $json_content)

No description

void
__call($name, $args)

No description

Details

at line 12
void ping(string $content)

Parameters

string $content

Return Value

void

Exceptions

Exception

at line 24
void push(string $json_content)

push.

  1. 首次推送到新分支,head_commit 为空

Parameters

string $json_content

Return Value

void

Exceptions

Exception

at line 29
status(string $content)

Parameters

string $content

at line 42
void issues(string $json_content)

"assigned", "unassigned", "labeled", "unlabeled", "opened", "edited", "closed" or "reopened" "milestoned", "demilestoned".

Parameters

string $json_content

Return Value

void

Exceptions

Exception

at line 52
void issue_comment(string $json_content)

"created", "edited", or "deleted".

Parameters

string $json_content

Return Value

void

Exceptions

Exception

at line 67
array|void pull_request(string $json_content)

Action.

"assigned", "unassigned", "review_requested", "review_request_removed", "labeled", "unlabeled", "opened", "synchronize", "edited", "closed", or "reopened"

Parameters

string $json_content

Return Value

array|void

Exceptions

Exception

at line 75
watch()

Do Nothing.

at line 83
fork()

Do Nothing.

at line 91
release()

Do nothing.

at line 103
int create(string $content)

Create "repository", "branch", or "tag".

Parameters

string $content

Return Value

int

Exceptions

Exception

at line 113
void delete(string $json_content)

Delete tag or branch.

Parameters

string $json_content

Return Value

void

Exceptions

Exception

at line 123
void member(string $content)

action added deleted edited removed.

Parameters

string $content

Return Value

void

Exceptions

Exception

at line 127
void team_add(string $content)

Parameters

string $content

Return Value

void

at line 152
void installation(string $json_content)

Any time a GitHub App is installed or uninstalled.

action:

created 用户点击安装按钮

deleted 用户卸载了 GitHub Apps

Parameters

string $json_content

Return Value

void

Exceptions

Exception

See also

at line 168
void installation_repositories(string $json_content)

Any time a repository is added or removed from an installation.

action:

added 用户增加仓库

removed 移除仓库

Parameters

string $json_content

Return Value

void

Exceptions

Exception

at line 176
void integration_installation() deprecated

deprecated

Return Value

void

at line 183
void integration_installation_repositories() deprecated

deprecated

Return Value

void

at line 200
void check_suite(string $json_content)

Action.

completed

requested 用户推送分支,github post webhooks

rerequested 用户点击了重新运行按钮

Parameters

string $json_content

Return Value

void

Exceptions

Exception

See also

at line 214
void check_run(string $json_content)

Action.

created updated rerequested

Parameters

string $json_content

Return Value

void

Exceptions

Exception

See also

at line 219
void content_reference(string $json_content)

Parameters

string $json_content

Return Value

void

at line 227
void repository(string $json_content)

Parameters

string $json_content

Return Value

void

See also

at line 232
void __call($name, $args)

Parameters

$name
$args

Return Value

void