Appearance
Function: Commit()
ts
function Commit(props: Readonly<{
message: string;
sha: string;
author?: string;
authorAvatar?: string;
className?: string;
files?: Readonly<{
path: string;
additions?: number;
deletions?: number;
}>[];
timestamp?: string;
}> & RefAttributes<HTMLDivElement>): Block;Defined in: packages/sdk/src/renderer/blocks/index.ts:2734
Experimental
Commit — git commit summary card with author, sha, message, and an optional list of changed files.
Parameters
| Parameter | Type |
|---|---|
props | Readonly<{ message: string; sha: string; author?: string; authorAvatar?: string; className?: string; files?: Readonly<{ path: string; additions?: number; deletions?: number; }>[]; timestamp?: string; }> & RefAttributes<HTMLDivElement> |