Skip to content

Commit e8c1426

Browse files
committed
fix: Ensure installation ID is set correctly in GitHub payload handling
1 parent b986ffb commit e8c1426

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/VCS/Adapter/Git/GitHub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ public function getEvent(string $event, string $payload): array
631631
throw new Exception("Invalid payload.");
632632
}
633633

634-
$installationId = strval($payload['installation']['id']);
634+
$installationId = strval(isset($payload['installation']['id']) ? $payload['installation']['id'] : '');
635635

636636
switch ($event) {
637637
case 'push':

0 commit comments

Comments
 (0)