Interface GitHubRepository

Represents a GitHub repository.

interface GitHubRepository {
    archived: boolean;
    clone_url: string;
    created_at: string;
    default_branch: string;
    description: null | string;
    disabled: boolean;
    fork: boolean;
    forks_count: number;
    full_name: string;
    has_discussions?: boolean;
    has_issues?: boolean;
    has_projects?: boolean;
    has_wiki?: boolean;
    html_url: string;
    id: number;
    language: null | string;
    name: string;
    open_issues_count: number;
    owner: GitHubUser;
    parent?: GitHubRepository;
    private: boolean;
    pushed_at: null | string;
    size?: number;
    ssh_url: string;
    stargazers_count: number;
    topics: string[];
    updated_at: string;
    visibility: "public" | "private" | "internal";
    watchers_count: number;
}

Properties

archived: boolean

Whether the repository is archived

clone_url: string

HTTPS clone URL

created_at: string

ISO 8601 timestamp of repository creation

default_branch: string

Default branch name (e.g., 'main')

description: null | string

Repository description

disabled: boolean

Whether the repository is disabled

fork: boolean

Whether the repository is a fork

forks_count: number

Number of forks

full_name: string

Full name including owner (e.g., 'octocat/Hello-World')

has_discussions?: boolean

Whether the repository has discussions enabled

has_issues?: boolean

Whether the repository has issues enabled

has_projects?: boolean

Whether the repository has projects enabled

has_wiki?: boolean

Whether the repository has wiki enabled

html_url: string

URL to the repository on GitHub

id: number

Unique numeric repository ID

language: null | string

Primary language

name: string

Repository name (e.g., 'Hello-World')

open_issues_count: number

Number of open issues and pull requests

owner: GitHubUser

Repository owner (user or organization)

Parent repository, if this is a fork

private: boolean

Whether the repository is private

pushed_at: null | string

ISO 8601 timestamp of the last push

size?: number

Repository size in kilobytes

ssh_url: string

SSH clone URL

stargazers_count: number

Number of stargazers

topics: string[]

Repository topics

updated_at: string

ISO 8601 timestamp of last update

visibility: "public" | "private" | "internal"

Repository visibility

watchers_count: number

Number of watchers