Skip to content

Commit 2dfa872

Browse files
committed
test(approvals): the no-approver note's test renderer reads the typed object-label param
Claude-Session: https://claude.ai/code/session_01ADHkmQNmyLgnBbCoc2iFjL Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9d5362a commit 2dfa872

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/plugins/plugin-approvals/src/no-approver-note.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ const deliveredIn = (
4242
const params: Record<string, string> = {};
4343
for (const [name, param] of Object.entries(notice.params)) {
4444
if (typeof param === 'string') { params[name] = param; continue; }
45+
// [#35384] An object-label param is resolved off the object's metadata, which no notice here names.
46+
if ('objectLabel' in param) { params[name] = param.fallback; continue; }
4547
const looked = param.key.startsWith('messages.') ? catalog[param.key.slice('messages.'.length)] : pack[param.key];
4648
params[name] = looked ?? param.fallback;
4749
}

0 commit comments

Comments
 (0)