Метод | Описание | |
---|---|---|
__construct ( REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface $projectRepository, REBELinBLUE\Deployer\Contracts\Repositories\DeploymentRepositoryInterface $deploymentRepository ) | WebhookController constructor. | |
refresh ( integer $project_id ) : Illuminate\View\View | Generates a new webhook URL. | |
webhook ( Illuminate\Http\Request $request, string $hash ) : Illuminate\View\View | Handles incoming requests to trigger deploy. |
Метод | Описание | |
---|---|---|
appendProjectSettings ( array $payload, Illuminate\Http\Request $request, |
Takes the data returned from the webhook request and then adds deployers own data, such as project ID and runs any checks such as checks the branch is allowed to be deployed. | |
parseWebhookRequest ( Illuminate\Http\Request $request, |
Goes through the various webhook integrations as checks if the request is for them and parses it. |
public __construct ( REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface $projectRepository, REBELinBLUE\Deployer\Contracts\Repositories\DeploymentRepositoryInterface $deploymentRepository ) | ||
$projectRepository | REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface | |
$deploymentRepository | REBELinBLUE\Deployer\Contracts\Repositories\DeploymentRepositoryInterface |