Skip to content

Commit 7aa8355

Browse files
detainclaude
andcommitted
chore(CodeReviewQueue): default missing repo to '' in push envelope
Defensive null-coalesce in buildPushEnvelope() matching the sibling fields (ref/before_sha/after_sha already use ?? ''). Picked up as an unrelated drive-by edit from a worker-refactor agent; harmless and consistent, kept on its own. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 9d34c5d commit 7aa8355

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CodeReviewQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public static function buildPushEnvelope(array $job): array
276276
'id' => self::uuidV4(),
277277
'ts' => time(),
278278
'kind' => 'push',
279-
'repo' => $job['repo'],
279+
'repo' => $job['repo'] ?? '',
280280
'action' => 'push',
281281
'ref' => $job['ref'] ?? '',
282282
'before_sha' => $job['before_sha'] ?? '',

0 commit comments

Comments
 (0)