GitHubRepo
Defined in: repos/repos.ts:5
A repository as GitHub returns it, with only the fields this client reads.
Properties
Section titled “Properties”allow_auto_merge?
Section titled “allow_auto_merge?”
optionalallow_auto_merge?:boolean
Defined in: repos/repos.ts:27
Whether auto-merge is allowed.
allow_merge_commit?
Section titled “allow_merge_commit?”
optionalallow_merge_commit?:boolean
Defined in: repos/repos.ts:23
Whether merge commits are allowed.
allow_rebase_merge?
Section titled “allow_rebase_merge?”
optionalallow_rebase_merge?:boolean
Defined in: repos/repos.ts:25
Whether rebase merging is allowed.
allow_squash_merge?
Section titled “allow_squash_merge?”
optionalallow_squash_merge?:boolean
Defined in: repos/repos.ts:21
Whether squash merging is allowed.
allow_update_branch?
Section titled “allow_update_branch?”
optionalallow_update_branch?:boolean
Defined in: repos/repos.ts:29
Whether a pull request branch can be updated from its base.
archived?
Section titled “archived?”
optionalarchived?:boolean
Defined in: repos/repos.ts:13
Whether the repository is archived (read-only).
default_branch
Section titled “default_branch”default_branch:
string
Defined in: repos/repos.ts:9
The name of the repository’s default branch.
delete_branch_on_merge?
Section titled “delete_branch_on_merge?”
optionaldelete_branch_on_merge?:boolean
Defined in: repos/repos.ts:31
Whether a merged pull request’s branch is deleted.
description?
Section titled “description?”
optionaldescription?:string|null
Defined in: repos/repos.ts:15
The repository description.
full_name
Section titled “full_name”full_name:
string
Defined in: repos/repos.ts:11
The repository’s owner/name.
has_discussions?
Section titled “has_discussions?”
optionalhas_discussions?:boolean
Defined in: repos/repos.ts:35
Whether discussions are enabled.
has_issues?
Section titled “has_issues?”
optionalhas_issues?:boolean
Defined in: repos/repos.ts:33
Whether issues are enabled.
has_projects?
Section titled “has_projects?”
optionalhas_projects?:boolean
Defined in: repos/repos.ts:37
Whether projects are enabled.
has_wiki?
Section titled “has_wiki?”
optionalhas_wiki?:boolean
Defined in: repos/repos.ts:39
Whether the wiki is enabled.
homepage?
Section titled “homepage?”
optionalhomepage?: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.
security_and_analysis?
Section titled “security_and_analysis?”
optionalsecurity_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.
topics?
Section titled “topics?”
optionaltopics?:string[]
Defined in: repos/repos.ts:19
The topics set on the repository.