PHP Class REBELinBLUE\Deployer\Http\Webhooks\Gogs

Inheritance: extends Webhook
显示文件 Open project: rebelinblue/deployer

Public Methods

Method Description
handlePush ( ) : mixed Parses the request for a push webhook body.
isRequestOrigin ( ) : boolean Determines whether the request was from Gogs/Gitea.

Method Details

handlePush() public method

Parses the request for a push webhook body.
public handlePush ( ) : mixed
return mixed Either an array of parameters for the deployment config, or false if it is invalid.

isRequestOrigin() public method

Determines whether the request was from Gogs/Gitea.
public isRequestOrigin ( ) : boolean
return boolean