diff --git a/app/Customize/Webhook/GithubRequestParser.php b/app/Customize/Webhook/GithubRequestParser.php index 68a1172372..2c0c446da6 100644 --- a/app/Customize/Webhook/GithubRequestParser.php +++ b/app/Customize/Webhook/GithubRequestParser.php @@ -81,6 +81,7 @@ protected function validateHeaders(HeaderBag $headers): void protected function validatePayload(InputBag $payload): void { + // プルリクがクローズドされていない場合はエラー if ($payload->has('action') && 'closed' !== $payload->get('action')) { throw new RejectWebhookException(406, 'Pull Request is not closed.'); }