Skip to content

GitHubRepo

Defined in: repos/repos.ts:5

A repository as GitHub returns it, with only the fields this client reads.

optional allow_auto_merge?: boolean

Defined in: repos/repos.ts:27

Whether auto-merge is allowed.


optional allow_merge_commit?: boolean

Defined in: repos/repos.ts:23

Whether merge commits are allowed.


optional allow_rebase_merge?: boolean

Defined in: repos/repos.ts:25

Whether rebase merging is allowed.


optional allow_squash_merge?: boolean

Defined in: repos/repos.ts:21

Whether squash merging is allowed.


optional allow_update_branch?: boolean

Defined in: repos/repos.ts:29

Whether a pull request branch can be updated from its base.


optional archived?: boolean

Defined in: repos/repos.ts:13

Whether the repository is archived (read-only).


default_branch: string

Defined in: repos/repos.ts:9

The name of the repository’s default branch.


optional delete_branch_on_merge?: boolean

Defined in: repos/repos.ts:31

Whether a merged pull request’s branch is deleted.


optional description?: string | null

Defined in: repos/repos.ts:15

The repository description.


full_name: string

Defined in: repos/repos.ts:11

The repository’s owner/name.


optional has_discussions?: boolean

Defined in: repos/repos.ts:35

Whether discussions are enabled.


optional has_issues?: boolean

Defined in: repos/repos.ts:33

Whether issues are enabled.


optional has_projects?: boolean

Defined in: repos/repos.ts:37

Whether projects are enabled.


optional has_wiki?: boolean

Defined in: repos/repos.ts:39

Whether the wiki is enabled.


optional homepage?: string | null

Defined in: repos/repos.ts:17

The repository homepage URL.


id: number

Defined in: repos/repos.ts:7

The repository’s numeric id, which organization secrets and variables name their readers by.


optional security_and_analysis?: Record<string, { status: string; } | undefined> | null

Defined in: repos/repos.ts:41

Each feature’s status (enabled / disabled). Only an admin token sees it; absent for the rest.


optional topics?: string[]

Defined in: repos/repos.ts:19

The topics set on the repository.