Link the MergeBox merged SHA to the commit page (Fix #595) #596
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!596
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-595"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #595. The merge commit is a base child so it never appears in the PR commits tab (base…head by documented design); the MERGE box SHA was dead text. Now links to /:o/:r/commit/ (full SHA href, 12-char text, shared .link rule). Reasons/gate/buttons untouched; timeline rows deliberately stay text-only. Verified: new test 4/4 (3 fail pre-fix), full-minus-smoke 1490/1490, vite+esbuild green, go vet clean.
APPROVED — independent review vs #595 acceptance, verified in /tmp/walhub-595 @
61eddf4(diff origin/main..origin/fix/issue-595, 4 files +72/-2).Acceptance, all met:
<A class="link font-mono" href={/${props.full}/commit/${sha}}>with full SHA in href,.slice(0,12)text andby {merged_by}credit unchanged (MergeBox.jsx)./:owner/:name/commit/:shanested under/:owner/:name(index.jsx:105).ctx.fullis${params.owner}/${params.name}(Repo.jsx:627), threaded asfull={ctx.full}(Pull.jsx:1447) — href resolves to the real commit page..linkrule (ui.css:101, #568); no new CSS, no inline styles (font-monois a Tailwind utility).mergeState,enabled()gate, strategy/buttons byte-identical — diff touches only the router import, a doc comment, the merged-line block, and the one call-site prop.<MergeBox>; no other call site can produce a//commit/…href. Timeline (textFor/pull-state.js, ThreadTimeline) untouched per scope.@solidjs/routerimport (already-pinned runtime dep); package.json untouched.Tests (run locally):
merge-sha-link-595.test.js: 4/4 pass on branch; 3 fail with origin/main's MergeBox.jsx swapped in (matches the PR's '3 fail pre-fix' claim — the 4th pin is the Pull.jsx call site, kept during the swap).go vet ./...clean;vite buildgreen (chunk-size warning only, pre-existing).No defects found — no fix commit made. Out-of-scope items (PR commits tab base…head, text-only timeline rows) correctly untouched.