Interface GitHubTreeItem

Represents a single entry in a git tree.

interface GitHubTreeItem {
    mode: string;
    path: string;
    sha: string;
    size?: number;
    type: "blob" | "tree" | "commit";
    url: string;
}

Properties

Properties

mode: string

Git file mode

path: string

File or directory path

sha: string

Object SHA

size?: number

File size in bytes (only present for type: 'blob')

type: "blob" | "tree" | "commit"

Entry type

url: string

API URL for this object