CommitStrip

A compact latest-commit bar showing author, message, SHA, time, and a history link.

Import

import { CommitStrip } from "@gumtree/ui/forge/CommitStrip";

Props

PropTypeDefaultDescription
authorName*string-Commit author display name
authorAvatarstring-URL for the author avatar image
authorPlaceholderstring-Initial letter for avatar placeholder
authorColorstring-Background color for the avatar placeholder
message*string-Commit message (truncated if long)
sha*string-Abbreviated commit hash
shaHrefstring-Link to the commit detail page
time*string-Relative or formatted time
historyHrefstring-Link to the commit history page

Examples

With History Link

A commit strip with a clickable SHA and history button.

B
brendanAdd es and pt to is_rtl() for comprehensive locale fallbacka1f3e022 hours ago History
<CommitStrip
  authorName="brendan"
  authorPlaceholder="B"
  message="Add es and pt to is_rtl() for comprehensive locale fallback"
  sha="a1f3e02"
  shaHref="#"
  time="2 hours ago"
  historyHref="#"
/>

Minimal

A commit strip without links.

C
carolfeat: add BCP-47 locale matchingf8c2d913 days ago
<CommitStrip
  authorName="carol"
  authorPlaceholder="C"
  message="feat: add BCP-47 locale matching"
  sha="f8c2d91"
  time="3 days ago"
/>