()
| 553 | } |
| 554 | |
| 555 | async function updateVersionInfo() { |
| 556 | try { |
| 557 | const sha = await getCommitShaForRef(state.currentRef); |
| 558 | state.latestCommitSha = sha; |
| 559 | const shortSha = sha.slice(0, 7); |
| 560 | const tag = state.currentRefType === 'tag' ? state.currentRef : (state.latestReleaseTag || 'unknown'); |
| 561 | versionInfo.textContent = `Version: ${tag} (${shortSha})`; |
| 562 | } catch { |
| 563 | versionInfo.textContent = 'Version: unknown'; |
| 564 | } |
| 565 | } |
| 566 | |
| 567 | async function refreshBriefsForRef(ref) { |
| 568 | state.libraryBriefByName = {}; |
no test coverage detected