export function initCommitDetail(): void { const btn = document.querySelector('.cmt-copy-btn'); const shaEl = document.getElementById('cmt-sha'); if (!btn || !shaEl) return; const sha = shaEl.title; btn.addEventListener('click', () => { void navigator.clipboard.writeText(sha); }); }