CommitRow
Displays a single commit with message, author, date, and abbreviated SHA.
Import
import { CommitRow } from "@gumtree/ui/forge/CommitRow" ; Props
| Prop | Type | Default | Description |
|---|---|---|---|
sha* | string | - | Full commit SHA (displayed truncated to 7 chars) |
message* | string | - | Commit message |
authorName* | string | - | Author display name |
authorAvatar | string | - | URL for the author's avatar image |
date* | string | - | Relative or formatted date string |
href | string | - | Link to the commit detail page |
Examples
With Avatar
A commit row with an author avatar.
< CommitRow
sha = "a1b2c3d4e5f6"
message = "feat: add repository listing page"
authorName = "Alice"
authorAvatar = "https://api.dicebear.com/9.x/thumbs/svg?seed=Alice"
date = "2 hours ago"
/> Without Avatar
Commit rows without an avatar show a placeholder.
< CommitRow
sha = "f6e5d4c3b2a1"
message = "fix: correct sidebar navigation"
authorName = "Bob"
date = "5 hours ago"
/>
< CommitRow
sha = "1a2b3c4d5e6f"
message = "chore: update dependencies"
authorName = "Charlie"
date = "1 day ago"
/>