Skip to content

[Bug] Can not use webhook with "environment" #432

@gnomii

Description

@gnomii

Hello,

I have two environments "development" and "production" to deploy my projects. I use a webhook with gitea server and I receive a 500 status code when it called the webhook.

I have this error since tag 2.1.0. Before this, I used a master with this feature #407

You can try with curl command in terminal:

curl 'PHPCENSOR/webhook/git/PROJECTID?environment=development'

Returns:
{"status":"failed","error":"PHPCensor\\Controller\\WebhookController::createBuild(): Argument #3 ($commitId) must be of type string, null given, called in \/usr\/local\/www\/php-censor\/src\/Controller\/WebhookController.php on line 368"}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions