Interface GitHubUser

Represents a GitHub user or bot. This is the minimal user object embedded in other responses (e.g., repository owner, PR author).

interface GitHubUser {
    avatar_url: string;
    bio?: null | string;
    company?: null | string;
    created_at?: string;
    email: null | string;
    followers?: number;
    following?: number;
    html_url: string;
    id: number;
    location?: null | string;
    login: string;
    name: null | string;
    public_gists?: number;
    public_repos?: number;
    site_admin: boolean;
    type: "Organization" | "User" | "Bot";
    updated_at?: string;
}

Properties

avatar_url: string

URL to the user's avatar image

bio?: null | string

The user's biography

company?: null | string

The user's company affiliation

created_at?: string

ISO 8601 timestamp of account creation

email: null | string

Public email address, may be null

followers?: number

Number of followers

following?: number

Number of accounts the user follows

html_url: string

URL to the user's GitHub profile page

id: number

Unique numeric user ID

location?: null | string

The user's location

login: string

The user's login name (e.g., 'octocat')

name: null | string

Display name, may be null for users who have not set one

public_gists?: number

Number of public gists

public_repos?: number

Number of public repositories

site_admin: boolean

Whether the user is a GitHub site administrator

type: "Organization" | "User" | "Bot"

Account type

updated_at?: string

ISO 8601 timestamp of last profile update