fix(#2438): link config approval commit by full sha, not abbreviated

This commit is contained in:
damocles 2026-07-14 20:42:55 +02:00 committed by mara
commit bf657177d3
2 changed files with 16 additions and 2 deletions

View file

@ -354,10 +354,10 @@ export function renderApprovals() {
'↳ view diff');
diffBtn.addEventListener('click', () => openDiffPanel(a));
drill.append(diffBtn);
if (forgeBase && a.sha_short) {
if (forgeBase && a.sha_full) {
drill.append(el('a', {
class: 'panel-trigger', target: '_blank', rel: 'noopener',
href: `${forgeBase}/agent-configs/${a.agent}/commit/${a.sha_short}`,
href: `${forgeBase}/agent-configs/${a.agent}/commit/${a.sha_full}`,
title: 'this proposal commit on the hive forge',
}, '↳ commit on forge ↗'));
}