PullRequestEntity
A resolved pull request entity from GitHub.
Properties
Section titled “Properties”data:
object
url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/repos/octocat/Hello-World/pulls/1347id:
number
Format: int64
Example
Section titled “Example”1node_id
Section titled “node_id”node_id:
string
Example
Section titled “Example”MDExOlB1bGxSZXF1ZXN0MQ==html_url
Section titled “html_url”html_url:
string
Format: uri
Example
Section titled “Example”https://github.com/octocat/Hello-World/pull/1347diff_url
Section titled “diff_url”diff_url:
string
Format: uri
Example
Section titled “Example”https://github.com/octocat/Hello-World/pull/1347.diffpatch_url
Section titled “patch_url”patch_url:
string
Format: uri
Example
Section titled “Example”https://github.com/octocat/Hello-World/pull/1347.patchissue_url
Section titled “issue_url”issue_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/repos/octocat/Hello-World/issues/1347commits_url
Section titled “commits_url”commits_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/repos/octocat/Hello-World/pulls/1347/commitsreview_comments_url
Section titled “review_comments_url”review_comments_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/repos/octocat/Hello-World/pulls/1347/commentsreview_comment_url
Section titled “review_comment_url”review_comment_url:
string
Example
Section titled “Example”https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}comments_url
Section titled “comments_url”comments_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/repos/octocat/Hello-World/issues/1347/commentsstatuses_url
Section titled “statuses_url”statuses_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5enumber
Section titled “number”number:
number
Description
Section titled “Description”Number uniquely identifying the pull request within its repository.
Example
Section titled “Example”42state:
"open"|"closed"
Description
Section titled “Description”State of this Pull Request. Either open or closed.
Example
Section titled “Example”open@enum {string}locked
Section titled “locked”locked:
boolean
Example
Section titled “Example”truetitle:
string
Description
Section titled “Description”The title of the pull request.
Example
Section titled “Example”Amazing new featureuser:
object
user.name?
Section titled “user.name?”
optionalname:string|null
user.email?
Section titled “user.email?”
optionalemail:string|null
user.login
Section titled “user.login”login:
string
Example
Section titled “Example”octocatuser.id
Section titled “user.id”id:
number
Format: int64
Example
Section titled “Example”1user.node_id
Section titled “user.node_id”node_id:
string
Example
Section titled “Example”MDQ6VXNlcjE=user.avatar_url
Section titled “user.avatar_url”avatar_url:
string
Format: uri
Example
Section titled “Example”https://github.com/images/error/octocat_happy.gifuser.gravatar_id
Section titled “user.gravatar_id”gravatar_id:
string|null
Example
Section titled “Example”41d064eb2195891e12d0413f63227ea7user.url
Section titled “user.url”url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocatuser.html_url
Section titled “user.html_url”html_url:
string
Format: uri
Example
Section titled “Example”https://github.com/octocatuser.followers_url
Section titled “user.followers_url”followers_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/followersuser.following_url
Section titled “user.following_url”following_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/following{/other_user}user.gists_url
Section titled “user.gists_url”gists_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/gists{/gist_id}user.starred_url
Section titled “user.starred_url”starred_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/starred{/owner}{/repo}user.subscriptions_url
Section titled “user.subscriptions_url”subscriptions_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/subscriptionsuser.organizations_url
Section titled “user.organizations_url”organizations_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/orgsuser.repos_url
Section titled “user.repos_url”repos_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/reposuser.events_url
Section titled “user.events_url”events_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/events{/privacy}user.received_events_url
Section titled “user.received_events_url”received_events_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/received_eventsuser.type
Section titled “user.type”type:
string
Example
Section titled “Example”Useruser.site_admin
Section titled “user.site_admin”site_admin:
boolean
user.starred_at?
Section titled “user.starred_at?”
optionalstarred_at:string
Example
Section titled “Example”"2020-07-09T00:17:55Z"user.user_view_type?
Section titled “user.user_view_type?”
optionaluser_view_type:string
Example
Section titled “Example”publicbody:
string|null
Example
Section titled “Example”Please pull these awesome changeslabels
Section titled “labels”labels:
object[]
milestone
Section titled “milestone”milestone: {
url:string;html_url:string;labels_url:string;id:number;node_id:string;number:number;state:"open"|"closed";title:string;description:string|null;creator: {name?:string|null;email?:string|null;login:string;id:number;node_id:string;avatar_url:string;gravatar_id:string|null;url:string;html_url:string;followers_url:string;following_url:string;gists_url:string;starred_url:string;subscriptions_url:string;organizations_url:string;repos_url:string;events_url:string;received_events_url:string;type:string;site_admin:boolean;starred_at?:string;user_view_type?:string; } |null;open_issues:number;closed_issues:number;created_at:string;updated_at:string;closed_at:string|null;due_on:string|null; } |null
Type Declaration
Section titled “Type Declaration”{ url: string; html_url: string; labels_url: string; id: number; node_id: string; number: number; state: "open" | "closed"; title: string; description: string | null; creator: { name?: string | null; email?: string | null; login: string; id: number; node_id: string; avatar_url: string; gravatar_id: string | null; url: string; html_url: string; followers_url: string; following_url: string; gists_url: string; starred_url: string; subscriptions_url: string; organizations_url: string; repos_url: string; events_url: string; received_events_url: string; type: string; site_admin: boolean; starred_at?: string; user_view_type?: string; } | null; open_issues: number; closed_issues: number; created_at: string; updated_at: string; closed_at: string | null; due_on: string | null; }
null
active_lock_reason?
Section titled “active_lock_reason?”
optionalactive_lock_reason:string|null
Example
Section titled “Example”too heatedcreated_at
Section titled “created_at”created_at:
string
Format: date-time
Example
Section titled “Example”2011-01-26T19:01:12Zupdated_at
Section titled “updated_at”updated_at:
string
Format: date-time
Example
Section titled “Example”2011-01-26T19:01:12Zclosed_at
Section titled “closed_at”closed_at:
string|null
Format: date-time
Example
Section titled “Example”2011-01-26T19:01:12Zmerged_at
Section titled “merged_at”merged_at:
string|null
Format: date-time
Example
Section titled “Example”2011-01-26T19:01:12Zmerge_commit_sha
Section titled “merge_commit_sha”merge_commit_sha:
string|null
Example
Section titled “Example”e5bd3914e2e596debea16f433f57875b5b90bcd6assignee
Section titled “assignee”assignee: {
name?:string|null;email?:string|null;login:string;id:number;node_id:string;avatar_url:string;gravatar_id:string|null;url:string;html_url:string;followers_url:string;following_url:string;gists_url:string;starred_url:string;subscriptions_url:string;organizations_url:string;repos_url:string;events_url:string;received_events_url:string;type:string;site_admin:boolean;starred_at?:string;user_view_type?:string; } |null
Type Declaration
Section titled “Type Declaration”{ name?: string | null; email?: string | null; login: string; id: number; node_id: string; avatar_url: string; gravatar_id: string | null; url: string; html_url: string; followers_url: string; following_url: string; gists_url: string; starred_url: string; subscriptions_url: string; organizations_url: string; repos_url: string; events_url: string; received_events_url: string; type: string; site_admin: boolean; starred_at?: string; user_view_type?: string; }
null
assignees?
Section titled “assignees?”
optionalassignees:object[] |null
requested_reviewers?
Section titled “requested_reviewers?”
optionalrequested_reviewers:object[] |null
requested_teams?
Section titled “requested_teams?”
optionalrequested_teams:object[] |null
head:
object
head.label
Section titled “head.label”label:
string
head.ref
Section titled “head.ref”ref:
string
head.repo
Section titled “head.repo”repo:
object
head.repo.id
Section titled “head.repo.id”id:
number
Format: int64
Description
Section titled “Description”Unique identifier of the repository
Example
Section titled “Example”42head.repo.node_id
Section titled “head.repo.node_id”node_id:
string
Example
Section titled “Example”MDEwOlJlcG9zaXRvcnkxMjk2MjY5head.repo.name
Section titled “head.repo.name”name:
string
Description
Section titled “Description”The name of the repository.
Example
Section titled “Example”Team Environmenthead.repo.full_name
Section titled “head.repo.full_name”full_name:
string
Example
Section titled “Example”octocat/Hello-Worldhead.repo.license
Section titled “head.repo.license”license: {
key:string;name:string;url:string|null;spdx_id:string|null;node_id:string;html_url?:string; } |null
Type Declaration
Section titled “Type Declaration”{ key: string; name: string; url: string | null; spdx_id: string | null; node_id: string; html_url?: string; }
null
head.repo.forks
Section titled “head.repo.forks”forks:
number
head.repo.permissions?
Section titled “head.repo.permissions?”
optionalpermissions:object
head.repo.permissions.admin
Section titled “head.repo.permissions.admin”admin:
boolean
head.repo.permissions.pull
Section titled “head.repo.permissions.pull”pull:
boolean
head.repo.permissions.triage?
Section titled “head.repo.permissions.triage?”
optionaltriage:boolean
head.repo.permissions.push
Section titled “head.repo.permissions.push”push:
boolean
head.repo.permissions.maintain?
Section titled “head.repo.permissions.maintain?”
optionalmaintain:boolean
head.repo.owner
Section titled “head.repo.owner”owner:
object
head.repo.owner.name?
Section titled “head.repo.owner.name?”
optionalname:string|null
head.repo.owner.email?
Section titled “head.repo.owner.email?”
optionalemail:string|null
head.repo.owner.login
Section titled “head.repo.owner.login”login:
string
Example
Section titled “Example”octocathead.repo.owner.id
Section titled “head.repo.owner.id”id:
number
Format: int64
Example
Section titled “Example”1head.repo.owner.node_id
Section titled “head.repo.owner.node_id”node_id:
string
Example
Section titled “Example”MDQ6VXNlcjE=head.repo.owner.avatar_url
Section titled “head.repo.owner.avatar_url”avatar_url:
string
Format: uri
Example
Section titled “Example”https://github.com/images/error/octocat_happy.gifhead.repo.owner.gravatar_id
Section titled “head.repo.owner.gravatar_id”gravatar_id:
string|null
Example
Section titled “Example”41d064eb2195891e12d0413f63227ea7head.repo.owner.url
Section titled “head.repo.owner.url”url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocathead.repo.owner.html_url
Section titled “head.repo.owner.html_url”html_url:
string
Format: uri
Example
Section titled “Example”https://github.com/octocathead.repo.owner.followers_url
Section titled “head.repo.owner.followers_url”followers_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/followershead.repo.owner.following_url
Section titled “head.repo.owner.following_url”following_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/following{/other_user}head.repo.owner.gists_url
Section titled “head.repo.owner.gists_url”gists_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/gists{/gist_id}head.repo.owner.starred_url
Section titled “head.repo.owner.starred_url”starred_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/starred{/owner}{/repo}head.repo.owner.subscriptions_url
Section titled “head.repo.owner.subscriptions_url”subscriptions_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/subscriptionshead.repo.owner.organizations_url
Section titled “head.repo.owner.organizations_url”organizations_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/orgshead.repo.owner.repos_url
Section titled “head.repo.owner.repos_url”repos_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/reposhead.repo.owner.events_url
Section titled “head.repo.owner.events_url”events_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/events{/privacy}head.repo.owner.received_events_url
Section titled “head.repo.owner.received_events_url”received_events_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/received_eventshead.repo.owner.type
Section titled “head.repo.owner.type”type:
string
Example
Section titled “Example”Userhead.repo.owner.site_admin
Section titled “head.repo.owner.site_admin”site_admin:
boolean
head.repo.owner.starred_at?
Section titled “head.repo.owner.starred_at?”
optionalstarred_at:string
Example
Section titled “Example”"2020-07-09T00:17:55Z"head.repo.owner.user_view_type?
Section titled “head.repo.owner.user_view_type?”
optionaluser_view_type:string
Example
Section titled “Example”publichead.repo.private
Section titled “head.repo.private”private:
boolean
Description
Section titled “Description”Whether the repository is private or public.
Default
Section titled “Default”falsehead.repo.html_url
Section titled “head.repo.html_url”html_url:
string
Format: uri
Example
Section titled “Example”https://github.com/octocat/Hello-Worldhead.repo.description
Section titled “head.repo.description”description:
string|null
Example
Section titled “Example”This your first repo!head.repo.fork
Section titled “head.repo.fork”fork:
boolean
head.repo.url
Section titled “head.repo.url”url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/repos/octocat/Hello-Worldhead.repo.archive_url
Section titled “head.repo.archive_url”archive_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}head.repo.assignees_url
Section titled “head.repo.assignees_url”assignees_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/assignees{/user}head.repo.blobs_url
Section titled “head.repo.blobs_url”blobs_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}head.repo.branches_url
Section titled “head.repo.branches_url”branches_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/branches{/branch}head.repo.collaborators_url
Section titled “head.repo.collaborators_url”collaborators_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}head.repo.comments_url
Section titled “head.repo.comments_url”comments_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/comments{/number}head.repo.commits_url
Section titled “head.repo.commits_url”commits_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/commits{/sha}head.repo.compare_url
Section titled “head.repo.compare_url”compare_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}head.repo.contents_url
Section titled “head.repo.contents_url”contents_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/contents/{+path}head.repo.contributors_url
Section titled “head.repo.contributors_url”contributors_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/contributorshead.repo.deployments_url
Section titled “head.repo.deployments_url”deployments_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/deploymentshead.repo.downloads_url
Section titled “head.repo.downloads_url”downloads_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/downloadshead.repo.events_url
Section titled “head.repo.events_url”events_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/eventshead.repo.forks_url
Section titled “head.repo.forks_url”forks_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/forkshead.repo.git_commits_url
Section titled “head.repo.git_commits_url”git_commits_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}head.repo.git_refs_url
Section titled “head.repo.git_refs_url”git_refs_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}head.repo.git_tags_url
Section titled “head.repo.git_tags_url”git_tags_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}head.repo.git_url
Section titled “head.repo.git_url”git_url:
string
Example
Section titled “Example”git:github.com/octocat/Hello-World.githead.repo.issue_comment_url
Section titled “head.repo.issue_comment_url”issue_comment_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}head.repo.issue_events_url
Section titled “head.repo.issue_events_url”issue_events_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/issues/events{/number}head.repo.issues_url
Section titled “head.repo.issues_url”issues_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/issues{/number}head.repo.keys_url
Section titled “head.repo.keys_url”keys_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/keys{/key_id}head.repo.labels_url
Section titled “head.repo.labels_url”labels_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/labels{/name}head.repo.languages_url
Section titled “head.repo.languages_url”languages_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/languageshead.repo.merges_url
Section titled “head.repo.merges_url”merges_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/mergeshead.repo.milestones_url
Section titled “head.repo.milestones_url”milestones_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/milestones{/number}head.repo.notifications_url
Section titled “head.repo.notifications_url”notifications_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}head.repo.pulls_url
Section titled “head.repo.pulls_url”pulls_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/pulls{/number}head.repo.releases_url
Section titled “head.repo.releases_url”releases_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/releases{/id}head.repo.ssh_url
Section titled “head.repo.ssh_url”ssh_url:
string
Example
Section titled “Example”git@github.com:octocat/Hello-World.githead.repo.stargazers_url
Section titled “head.repo.stargazers_url”stargazers_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/stargazershead.repo.statuses_url
Section titled “head.repo.statuses_url”statuses_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/statuses/{sha}head.repo.subscribers_url
Section titled “head.repo.subscribers_url”subscribers_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/subscribershead.repo.subscription_url
Section titled “head.repo.subscription_url”subscription_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/subscriptionhead.repo.tags_url
Section titled “head.repo.tags_url”tags_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/tagshead.repo.teams_url
Section titled “head.repo.teams_url”teams_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/teamshead.repo.trees_url
Section titled “head.repo.trees_url”trees_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}head.repo.clone_url
Section titled “head.repo.clone_url”clone_url:
string
Example
Section titled “Example”https://github.com/octocat/Hello-World.githead.repo.mirror_url
Section titled “head.repo.mirror_url”mirror_url:
string|null
Format: uri
Example
Section titled “Example”git:git.example.com/octocat/Hello-Worldhead.repo.hooks_url
Section titled “head.repo.hooks_url”hooks_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/hookshead.repo.svn_url
Section titled “head.repo.svn_url”svn_url:
string
Format: uri
Example
Section titled “Example”https://svn.github.com/octocat/Hello-Worldhead.repo.homepage
Section titled “head.repo.homepage”homepage:
string|null
Format: uri
Example
Section titled “Example”https://github.comhead.repo.language
Section titled “head.repo.language”language:
string|null
head.repo.forks_count
Section titled “head.repo.forks_count”forks_count:
number
Example
Section titled “Example”9head.repo.stargazers_count
Section titled “head.repo.stargazers_count”stargazers_count:
number
Example
Section titled “Example”80head.repo.watchers_count
Section titled “head.repo.watchers_count”watchers_count:
number
Example
Section titled “Example”80head.repo.size
Section titled “head.repo.size”size:
number
Description
Section titled “Description”The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.
Example
Section titled “Example”108head.repo.default_branch
Section titled “head.repo.default_branch”default_branch:
string
Description
Section titled “Description”The default branch of the repository.
Example
Section titled “Example”masterhead.repo.open_issues_count
Section titled “head.repo.open_issues_count”open_issues_count:
number
Example
Section titled “Example”0head.repo.is_template?
Section titled “head.repo.is_template?”
optionalis_template:boolean
Description
Section titled “Description”Whether this repository acts as a template that can be used to generate new repositories.
Default
Section titled “Default”falseExample
Section titled “Example”truehead.repo.topics?
Section titled “head.repo.topics?”
optionaltopics:string[]
head.repo.has_issues
Section titled “head.repo.has_issues”has_issues:
boolean
Description
Section titled “Description”Whether issues are enabled.
Default
Section titled “Default”trueExample
Section titled “Example”truehead.repo.has_projects
Section titled “head.repo.has_projects”has_projects:
boolean
Description
Section titled “Description”Whether projects are enabled.
Default
Section titled “Default”trueExample
Section titled “Example”truehead.repo.has_wiki
Section titled “head.repo.has_wiki”has_wiki:
boolean
Description
Section titled “Description”Whether the wiki is enabled.
Default
Section titled “Default”trueExample
Section titled “Example”truehead.repo.has_pages
Section titled “head.repo.has_pages”has_pages:
boolean
head.repo.has_downloads
Section titled “head.repo.has_downloads”has_downloads:
boolean
Description
Section titled “Description”Whether downloads are enabled.
Default
Section titled “Default”trueExample
Section titled “Example”truehead.repo.has_discussions?
Section titled “head.repo.has_discussions?”
optionalhas_discussions:boolean
Description
Section titled “Description”Whether discussions are enabled.
Default
Section titled “Default”falseExample
Section titled “Example”truehead.repo.archived
Section titled “head.repo.archived”archived:
boolean
Description
Section titled “Description”Whether the repository is archived.
Default
Section titled “Default”falsehead.repo.disabled
Section titled “head.repo.disabled”disabled:
boolean
Description
Section titled “Description”Returns whether or not this repository disabled.
head.repo.visibility?
Section titled “head.repo.visibility?”
optionalvisibility:string
Description
Section titled “Description”The repository visibility: public, private, or internal.
Default
Section titled “Default”publichead.repo.pushed_at
Section titled “head.repo.pushed_at”pushed_at:
string|null
Format: date-time
Example
Section titled “Example”2011-01-26T19:06:43Zhead.repo.created_at
Section titled “head.repo.created_at”created_at:
string|null
Format: date-time
Example
Section titled “Example”2011-01-26T19:01:12Zhead.repo.updated_at
Section titled “head.repo.updated_at”updated_at:
string|null
Format: date-time
Example
Section titled “Example”2011-01-26T19:14:43Zhead.repo.allow_rebase_merge?
Section titled “head.repo.allow_rebase_merge?”
optionalallow_rebase_merge:boolean
Description
Section titled “Description”Whether to allow rebase merges for pull requests.
Default
Section titled “Default”trueExample
Section titled “Example”truehead.repo.temp_clone_token?
Section titled “head.repo.temp_clone_token?”
optionaltemp_clone_token:string
head.repo.allow_squash_merge?
Section titled “head.repo.allow_squash_merge?”
optionalallow_squash_merge:boolean
Description
Section titled “Description”Whether to allow squash merges for pull requests.
Default
Section titled “Default”trueExample
Section titled “Example”truehead.repo.allow_auto_merge?
Section titled “head.repo.allow_auto_merge?”
optionalallow_auto_merge:boolean
Description
Section titled “Description”Whether to allow Auto-merge to be used on pull requests.
Default
Section titled “Default”falseExample
Section titled “Example”falsehead.repo.delete_branch_on_merge?
Section titled “head.repo.delete_branch_on_merge?”
optionaldelete_branch_on_merge:boolean
Description
Section titled “Description”Whether to delete head branches when pull requests are merged
Default
Section titled “Default”falseExample
Section titled “Example”falsehead.repo.allow_update_branch?
Section titled “head.repo.allow_update_branch?”
optionalallow_update_branch:boolean
Description
Section titled “Description”Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.
Default
Section titled “Default”falseExample
Section titled “Example”falsehead.repo.use_squash_pr_title_as_default?
Section titled “head.repo.use_squash_pr_title_as_default?”
optionaluse_squash_pr_title_as_default:boolean
Description
Section titled “Description”Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use squash_merge_commit_title instead.
Default
Section titled “Default”falsehead.repo.squash_merge_commit_title?
Section titled “head.repo.squash_merge_commit_title?”
optionalsquash_merge_commit_title:"PR_TITLE"|"COMMIT_OR_PR_TITLE"
Description
Section titled “Description”The default value for a squash merge commit title:
PR_TITLE- default to the pull request’s title.COMMIT_OR_PR_TITLE- default to the commit’s title (if only one commit) or the pull request’s title (when more than one commit).
head.repo.squash_merge_commit_message?
Section titled “head.repo.squash_merge_commit_message?”
optionalsquash_merge_commit_message:"PR_BODY"|"COMMIT_MESSAGES"|"BLANK"
Description
Section titled “Description”The default value for a squash merge commit message:
PR_BODY- default to the pull request’s body.COMMIT_MESSAGES- default to the branch’s commit messages.BLANK- default to a blank commit message.
head.repo.merge_commit_title?
Section titled “head.repo.merge_commit_title?”
optionalmerge_commit_title:"PR_TITLE"|"MERGE_MESSAGE"
Description
Section titled “Description”The default value for a merge commit title.
PR_TITLE- default to the pull request’s title.MERGE_MESSAGE- default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
head.repo.merge_commit_message?
Section titled “head.repo.merge_commit_message?”
optionalmerge_commit_message:"PR_TITLE"|"PR_BODY"|"BLANK"
Description
Section titled “Description”The default value for a merge commit message.
PR_TITLE- default to the pull request’s title.PR_BODY- default to the pull request’s body.BLANK- default to a blank commit message.
head.repo.allow_merge_commit?
Section titled “head.repo.allow_merge_commit?”
optionalallow_merge_commit:boolean
Description
Section titled “Description”Whether to allow merge commits for pull requests.
Default
Section titled “Default”trueExample
Section titled “Example”truehead.repo.allow_forking?
Section titled “head.repo.allow_forking?”
optionalallow_forking:boolean
Description
Section titled “Description”Whether to allow forking this repo
head.repo.web_commit_signoff_required?
Section titled “head.repo.web_commit_signoff_required?”
optionalweb_commit_signoff_required:boolean
Description
Section titled “Description”Whether to require contributors to sign off on web-based commits
Default
Section titled “Default”falsehead.repo.open_issues
Section titled “head.repo.open_issues”open_issues:
number
head.repo.watchers
Section titled “head.repo.watchers”watchers:
number
head.repo.master_branch?
Section titled “head.repo.master_branch?”
optionalmaster_branch:string
head.repo.starred_at?
Section titled “head.repo.starred_at?”
optionalstarred_at:string
Example
Section titled “Example”"2020-07-09T00:17:42Z"head.repo.anonymous_access_enabled?
Section titled “head.repo.anonymous_access_enabled?”
optionalanonymous_access_enabled:boolean
Description
Section titled “Description”Whether anonymous git access is enabled for this repository
head.repo.code_search_index_status?
Section titled “head.repo.code_search_index_status?”
optionalcode_search_index_status:object
Description
Section titled “Description”The status of the code search index for this repository
head.repo.code_search_index_status.lexical_search_ok?
Section titled “head.repo.code_search_index_status.lexical_search_ok?”
optionallexical_search_ok:boolean
head.repo.code_search_index_status.lexical_commit_sha?
Section titled “head.repo.code_search_index_status.lexical_commit_sha?”
optionallexical_commit_sha:string
head.sha
Section titled “head.sha”sha:
string
head.user
Section titled “head.user”user:
object
head.user.name?
Section titled “head.user.name?”
optionalname:string|null
head.user.email?
Section titled “head.user.email?”
optionalemail:string|null
head.user.login
Section titled “head.user.login”login:
string
Example
Section titled “Example”octocathead.user.id
Section titled “head.user.id”id:
number
Format: int64
Example
Section titled “Example”1head.user.node_id
Section titled “head.user.node_id”node_id:
string
Example
Section titled “Example”MDQ6VXNlcjE=head.user.avatar_url
Section titled “head.user.avatar_url”avatar_url:
string
Format: uri
Example
Section titled “Example”https://github.com/images/error/octocat_happy.gifhead.user.gravatar_id
Section titled “head.user.gravatar_id”gravatar_id:
string|null
Example
Section titled “Example”41d064eb2195891e12d0413f63227ea7head.user.url
Section titled “head.user.url”url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocathead.user.html_url
Section titled “head.user.html_url”html_url:
string
Format: uri
Example
Section titled “Example”https://github.com/octocathead.user.followers_url
Section titled “head.user.followers_url”followers_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/followershead.user.following_url
Section titled “head.user.following_url”following_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/following{/other_user}head.user.gists_url
Section titled “head.user.gists_url”gists_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/gists{/gist_id}head.user.starred_url
Section titled “head.user.starred_url”starred_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/starred{/owner}{/repo}head.user.subscriptions_url
Section titled “head.user.subscriptions_url”subscriptions_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/subscriptionshead.user.organizations_url
Section titled “head.user.organizations_url”organizations_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/orgshead.user.repos_url
Section titled “head.user.repos_url”repos_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/reposhead.user.events_url
Section titled “head.user.events_url”events_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/events{/privacy}head.user.received_events_url
Section titled “head.user.received_events_url”received_events_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/received_eventshead.user.type
Section titled “head.user.type”type:
string
Example
Section titled “Example”Userhead.user.site_admin
Section titled “head.user.site_admin”site_admin:
boolean
head.user.starred_at?
Section titled “head.user.starred_at?”
optionalstarred_at:string
Example
Section titled “Example”"2020-07-09T00:17:55Z"head.user.user_view_type?
Section titled “head.user.user_view_type?”
optionaluser_view_type:string
Example
Section titled “Example”publicbase:
object
base.label
Section titled “base.label”label:
string
base.ref
Section titled “base.ref”ref:
string
base.repo
Section titled “base.repo”repo:
object
base.repo.id
Section titled “base.repo.id”id:
number
Format: int64
Description
Section titled “Description”Unique identifier of the repository
Example
Section titled “Example”42base.repo.node_id
Section titled “base.repo.node_id”node_id:
string
Example
Section titled “Example”MDEwOlJlcG9zaXRvcnkxMjk2MjY5base.repo.name
Section titled “base.repo.name”name:
string
Description
Section titled “Description”The name of the repository.
Example
Section titled “Example”Team Environmentbase.repo.full_name
Section titled “base.repo.full_name”full_name:
string
Example
Section titled “Example”octocat/Hello-Worldbase.repo.license
Section titled “base.repo.license”license: {
key:string;name:string;url:string|null;spdx_id:string|null;node_id:string;html_url?:string; } |null
Type Declaration
Section titled “Type Declaration”{ key: string; name: string; url: string | null; spdx_id: string | null; node_id: string; html_url?: string; }
null
base.repo.forks
Section titled “base.repo.forks”forks:
number
base.repo.permissions?
Section titled “base.repo.permissions?”
optionalpermissions:object
base.repo.permissions.admin
Section titled “base.repo.permissions.admin”admin:
boolean
base.repo.permissions.pull
Section titled “base.repo.permissions.pull”pull:
boolean
base.repo.permissions.triage?
Section titled “base.repo.permissions.triage?”
optionaltriage:boolean
base.repo.permissions.push
Section titled “base.repo.permissions.push”push:
boolean
base.repo.permissions.maintain?
Section titled “base.repo.permissions.maintain?”
optionalmaintain:boolean
base.repo.owner
Section titled “base.repo.owner”owner:
object
base.repo.owner.name?
Section titled “base.repo.owner.name?”
optionalname:string|null
base.repo.owner.email?
Section titled “base.repo.owner.email?”
optionalemail:string|null
base.repo.owner.login
Section titled “base.repo.owner.login”login:
string
Example
Section titled “Example”octocatbase.repo.owner.id
Section titled “base.repo.owner.id”id:
number
Format: int64
Example
Section titled “Example”1base.repo.owner.node_id
Section titled “base.repo.owner.node_id”node_id:
string
Example
Section titled “Example”MDQ6VXNlcjE=base.repo.owner.avatar_url
Section titled “base.repo.owner.avatar_url”avatar_url:
string
Format: uri
Example
Section titled “Example”https://github.com/images/error/octocat_happy.gifbase.repo.owner.gravatar_id
Section titled “base.repo.owner.gravatar_id”gravatar_id:
string|null
Example
Section titled “Example”41d064eb2195891e12d0413f63227ea7base.repo.owner.url
Section titled “base.repo.owner.url”url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocatbase.repo.owner.html_url
Section titled “base.repo.owner.html_url”html_url:
string
Format: uri
Example
Section titled “Example”https://github.com/octocatbase.repo.owner.followers_url
Section titled “base.repo.owner.followers_url”followers_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/followersbase.repo.owner.following_url
Section titled “base.repo.owner.following_url”following_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/following{/other_user}base.repo.owner.gists_url
Section titled “base.repo.owner.gists_url”gists_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/gists{/gist_id}base.repo.owner.starred_url
Section titled “base.repo.owner.starred_url”starred_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/starred{/owner}{/repo}base.repo.owner.subscriptions_url
Section titled “base.repo.owner.subscriptions_url”subscriptions_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/subscriptionsbase.repo.owner.organizations_url
Section titled “base.repo.owner.organizations_url”organizations_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/orgsbase.repo.owner.repos_url
Section titled “base.repo.owner.repos_url”repos_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/reposbase.repo.owner.events_url
Section titled “base.repo.owner.events_url”events_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/events{/privacy}base.repo.owner.received_events_url
Section titled “base.repo.owner.received_events_url”received_events_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/received_eventsbase.repo.owner.type
Section titled “base.repo.owner.type”type:
string
Example
Section titled “Example”Userbase.repo.owner.site_admin
Section titled “base.repo.owner.site_admin”site_admin:
boolean
base.repo.owner.starred_at?
Section titled “base.repo.owner.starred_at?”
optionalstarred_at:string
Example
Section titled “Example”"2020-07-09T00:17:55Z"base.repo.owner.user_view_type?
Section titled “base.repo.owner.user_view_type?”
optionaluser_view_type:string
Example
Section titled “Example”publicbase.repo.private
Section titled “base.repo.private”private:
boolean
Description
Section titled “Description”Whether the repository is private or public.
Default
Section titled “Default”falsebase.repo.html_url
Section titled “base.repo.html_url”html_url:
string
Format: uri
Example
Section titled “Example”https://github.com/octocat/Hello-Worldbase.repo.description
Section titled “base.repo.description”description:
string|null
Example
Section titled “Example”This your first repo!base.repo.fork
Section titled “base.repo.fork”fork:
boolean
base.repo.url
Section titled “base.repo.url”url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/repos/octocat/Hello-Worldbase.repo.archive_url
Section titled “base.repo.archive_url”archive_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}base.repo.assignees_url
Section titled “base.repo.assignees_url”assignees_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/assignees{/user}base.repo.blobs_url
Section titled “base.repo.blobs_url”blobs_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}base.repo.branches_url
Section titled “base.repo.branches_url”branches_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/branches{/branch}base.repo.collaborators_url
Section titled “base.repo.collaborators_url”collaborators_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}base.repo.comments_url
Section titled “base.repo.comments_url”comments_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/comments{/number}base.repo.commits_url
Section titled “base.repo.commits_url”commits_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/commits{/sha}base.repo.compare_url
Section titled “base.repo.compare_url”compare_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}base.repo.contents_url
Section titled “base.repo.contents_url”contents_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/contents/{+path}base.repo.contributors_url
Section titled “base.repo.contributors_url”contributors_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/contributorsbase.repo.deployments_url
Section titled “base.repo.deployments_url”deployments_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/deploymentsbase.repo.downloads_url
Section titled “base.repo.downloads_url”downloads_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/downloadsbase.repo.events_url
Section titled “base.repo.events_url”events_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/eventsbase.repo.forks_url
Section titled “base.repo.forks_url”forks_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/forksbase.repo.git_commits_url
Section titled “base.repo.git_commits_url”git_commits_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}base.repo.git_refs_url
Section titled “base.repo.git_refs_url”git_refs_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}base.repo.git_tags_url
Section titled “base.repo.git_tags_url”git_tags_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}base.repo.git_url
Section titled “base.repo.git_url”git_url:
string
Example
Section titled “Example”git:github.com/octocat/Hello-World.gitbase.repo.issue_comment_url
Section titled “base.repo.issue_comment_url”issue_comment_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}base.repo.issue_events_url
Section titled “base.repo.issue_events_url”issue_events_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/issues/events{/number}base.repo.issues_url
Section titled “base.repo.issues_url”issues_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/issues{/number}base.repo.keys_url
Section titled “base.repo.keys_url”keys_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/keys{/key_id}base.repo.labels_url
Section titled “base.repo.labels_url”labels_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/labels{/name}base.repo.languages_url
Section titled “base.repo.languages_url”languages_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/languagesbase.repo.merges_url
Section titled “base.repo.merges_url”merges_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/mergesbase.repo.milestones_url
Section titled “base.repo.milestones_url”milestones_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/milestones{/number}base.repo.notifications_url
Section titled “base.repo.notifications_url”notifications_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}base.repo.pulls_url
Section titled “base.repo.pulls_url”pulls_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/pulls{/number}base.repo.releases_url
Section titled “base.repo.releases_url”releases_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/releases{/id}base.repo.ssh_url
Section titled “base.repo.ssh_url”ssh_url:
string
Example
Section titled “Example”git@github.com:octocat/Hello-World.gitbase.repo.stargazers_url
Section titled “base.repo.stargazers_url”stargazers_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/stargazersbase.repo.statuses_url
Section titled “base.repo.statuses_url”statuses_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/statuses/{sha}base.repo.subscribers_url
Section titled “base.repo.subscribers_url”subscribers_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/subscribersbase.repo.subscription_url
Section titled “base.repo.subscription_url”subscription_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/subscriptionbase.repo.tags_url
Section titled “base.repo.tags_url”tags_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/tagsbase.repo.teams_url
Section titled “base.repo.teams_url”teams_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/teamsbase.repo.trees_url
Section titled “base.repo.trees_url”trees_url:
string
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}base.repo.clone_url
Section titled “base.repo.clone_url”clone_url:
string
Example
Section titled “Example”https://github.com/octocat/Hello-World.gitbase.repo.mirror_url
Section titled “base.repo.mirror_url”mirror_url:
string|null
Format: uri
Example
Section titled “Example”git:git.example.com/octocat/Hello-Worldbase.repo.hooks_url
Section titled “base.repo.hooks_url”hooks_url:
string
Format: uri
Example
Section titled “Example”http://api.github.com/repos/octocat/Hello-World/hooksbase.repo.svn_url
Section titled “base.repo.svn_url”svn_url:
string
Format: uri
Example
Section titled “Example”https://svn.github.com/octocat/Hello-Worldbase.repo.homepage
Section titled “base.repo.homepage”homepage:
string|null
Format: uri
Example
Section titled “Example”https://github.combase.repo.language
Section titled “base.repo.language”language:
string|null
base.repo.forks_count
Section titled “base.repo.forks_count”forks_count:
number
Example
Section titled “Example”9base.repo.stargazers_count
Section titled “base.repo.stargazers_count”stargazers_count:
number
Example
Section titled “Example”80base.repo.watchers_count
Section titled “base.repo.watchers_count”watchers_count:
number
Example
Section titled “Example”80base.repo.size
Section titled “base.repo.size”size:
number
Description
Section titled “Description”The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.
Example
Section titled “Example”108base.repo.default_branch
Section titled “base.repo.default_branch”default_branch:
string
Description
Section titled “Description”The default branch of the repository.
Example
Section titled “Example”masterbase.repo.open_issues_count
Section titled “base.repo.open_issues_count”open_issues_count:
number
Example
Section titled “Example”0base.repo.is_template?
Section titled “base.repo.is_template?”
optionalis_template:boolean
Description
Section titled “Description”Whether this repository acts as a template that can be used to generate new repositories.
Default
Section titled “Default”falseExample
Section titled “Example”truebase.repo.topics?
Section titled “base.repo.topics?”
optionaltopics:string[]
base.repo.has_issues
Section titled “base.repo.has_issues”has_issues:
boolean
Description
Section titled “Description”Whether issues are enabled.
Default
Section titled “Default”trueExample
Section titled “Example”truebase.repo.has_projects
Section titled “base.repo.has_projects”has_projects:
boolean
Description
Section titled “Description”Whether projects are enabled.
Default
Section titled “Default”trueExample
Section titled “Example”truebase.repo.has_wiki
Section titled “base.repo.has_wiki”has_wiki:
boolean
Description
Section titled “Description”Whether the wiki is enabled.
Default
Section titled “Default”trueExample
Section titled “Example”truebase.repo.has_pages
Section titled “base.repo.has_pages”has_pages:
boolean
base.repo.has_downloads
Section titled “base.repo.has_downloads”has_downloads:
boolean
Description
Section titled “Description”Whether downloads are enabled.
Default
Section titled “Default”trueExample
Section titled “Example”truebase.repo.has_discussions?
Section titled “base.repo.has_discussions?”
optionalhas_discussions:boolean
Description
Section titled “Description”Whether discussions are enabled.
Default
Section titled “Default”falseExample
Section titled “Example”truebase.repo.archived
Section titled “base.repo.archived”archived:
boolean
Description
Section titled “Description”Whether the repository is archived.
Default
Section titled “Default”falsebase.repo.disabled
Section titled “base.repo.disabled”disabled:
boolean
Description
Section titled “Description”Returns whether or not this repository disabled.
base.repo.visibility?
Section titled “base.repo.visibility?”
optionalvisibility:string
Description
Section titled “Description”The repository visibility: public, private, or internal.
Default
Section titled “Default”publicbase.repo.pushed_at
Section titled “base.repo.pushed_at”pushed_at:
string|null
Format: date-time
Example
Section titled “Example”2011-01-26T19:06:43Zbase.repo.created_at
Section titled “base.repo.created_at”created_at:
string|null
Format: date-time
Example
Section titled “Example”2011-01-26T19:01:12Zbase.repo.updated_at
Section titled “base.repo.updated_at”updated_at:
string|null
Format: date-time
Example
Section titled “Example”2011-01-26T19:14:43Zbase.repo.allow_rebase_merge?
Section titled “base.repo.allow_rebase_merge?”
optionalallow_rebase_merge:boolean
Description
Section titled “Description”Whether to allow rebase merges for pull requests.
Default
Section titled “Default”trueExample
Section titled “Example”truebase.repo.temp_clone_token?
Section titled “base.repo.temp_clone_token?”
optionaltemp_clone_token:string
base.repo.allow_squash_merge?
Section titled “base.repo.allow_squash_merge?”
optionalallow_squash_merge:boolean
Description
Section titled “Description”Whether to allow squash merges for pull requests.
Default
Section titled “Default”trueExample
Section titled “Example”truebase.repo.allow_auto_merge?
Section titled “base.repo.allow_auto_merge?”
optionalallow_auto_merge:boolean
Description
Section titled “Description”Whether to allow Auto-merge to be used on pull requests.
Default
Section titled “Default”falseExample
Section titled “Example”falsebase.repo.delete_branch_on_merge?
Section titled “base.repo.delete_branch_on_merge?”
optionaldelete_branch_on_merge:boolean
Description
Section titled “Description”Whether to delete head branches when pull requests are merged
Default
Section titled “Default”falseExample
Section titled “Example”falsebase.repo.allow_update_branch?
Section titled “base.repo.allow_update_branch?”
optionalallow_update_branch:boolean
Description
Section titled “Description”Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.
Default
Section titled “Default”falseExample
Section titled “Example”falsebase.repo.use_squash_pr_title_as_default?
Section titled “base.repo.use_squash_pr_title_as_default?”
optionaluse_squash_pr_title_as_default:boolean
Description
Section titled “Description”Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use squash_merge_commit_title instead.
Default
Section titled “Default”falsebase.repo.squash_merge_commit_title?
Section titled “base.repo.squash_merge_commit_title?”
optionalsquash_merge_commit_title:"PR_TITLE"|"COMMIT_OR_PR_TITLE"
Description
Section titled “Description”The default value for a squash merge commit title:
PR_TITLE- default to the pull request’s title.COMMIT_OR_PR_TITLE- default to the commit’s title (if only one commit) or the pull request’s title (when more than one commit).
base.repo.squash_merge_commit_message?
Section titled “base.repo.squash_merge_commit_message?”
optionalsquash_merge_commit_message:"PR_BODY"|"COMMIT_MESSAGES"|"BLANK"
Description
Section titled “Description”The default value for a squash merge commit message:
PR_BODY- default to the pull request’s body.COMMIT_MESSAGES- default to the branch’s commit messages.BLANK- default to a blank commit message.
base.repo.merge_commit_title?
Section titled “base.repo.merge_commit_title?”
optionalmerge_commit_title:"PR_TITLE"|"MERGE_MESSAGE"
Description
Section titled “Description”The default value for a merge commit title.
PR_TITLE- default to the pull request’s title.MERGE_MESSAGE- default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
base.repo.merge_commit_message?
Section titled “base.repo.merge_commit_message?”
optionalmerge_commit_message:"PR_TITLE"|"PR_BODY"|"BLANK"
Description
Section titled “Description”The default value for a merge commit message.
PR_TITLE- default to the pull request’s title.PR_BODY- default to the pull request’s body.BLANK- default to a blank commit message.
base.repo.allow_merge_commit?
Section titled “base.repo.allow_merge_commit?”
optionalallow_merge_commit:boolean
Description
Section titled “Description”Whether to allow merge commits for pull requests.
Default
Section titled “Default”trueExample
Section titled “Example”truebase.repo.allow_forking?
Section titled “base.repo.allow_forking?”
optionalallow_forking:boolean
Description
Section titled “Description”Whether to allow forking this repo
base.repo.web_commit_signoff_required?
Section titled “base.repo.web_commit_signoff_required?”
optionalweb_commit_signoff_required:boolean
Description
Section titled “Description”Whether to require contributors to sign off on web-based commits
Default
Section titled “Default”falsebase.repo.open_issues
Section titled “base.repo.open_issues”open_issues:
number
base.repo.watchers
Section titled “base.repo.watchers”watchers:
number
base.repo.master_branch?
Section titled “base.repo.master_branch?”
optionalmaster_branch:string
base.repo.starred_at?
Section titled “base.repo.starred_at?”
optionalstarred_at:string
Example
Section titled “Example”"2020-07-09T00:17:42Z"base.repo.anonymous_access_enabled?
Section titled “base.repo.anonymous_access_enabled?”
optionalanonymous_access_enabled:boolean
Description
Section titled “Description”Whether anonymous git access is enabled for this repository
base.repo.code_search_index_status?
Section titled “base.repo.code_search_index_status?”
optionalcode_search_index_status:object
Description
Section titled “Description”The status of the code search index for this repository
base.repo.code_search_index_status.lexical_search_ok?
Section titled “base.repo.code_search_index_status.lexical_search_ok?”
optionallexical_search_ok:boolean
base.repo.code_search_index_status.lexical_commit_sha?
Section titled “base.repo.code_search_index_status.lexical_commit_sha?”
optionallexical_commit_sha:string
base.sha
Section titled “base.sha”sha:
string
base.user
Section titled “base.user”user:
object
base.user.name?
Section titled “base.user.name?”
optionalname:string|null
base.user.email?
Section titled “base.user.email?”
optionalemail:string|null
base.user.login
Section titled “base.user.login”login:
string
Example
Section titled “Example”octocatbase.user.id
Section titled “base.user.id”id:
number
Format: int64
Example
Section titled “Example”1base.user.node_id
Section titled “base.user.node_id”node_id:
string
Example
Section titled “Example”MDQ6VXNlcjE=base.user.avatar_url
Section titled “base.user.avatar_url”avatar_url:
string
Format: uri
Example
Section titled “Example”https://github.com/images/error/octocat_happy.gifbase.user.gravatar_id
Section titled “base.user.gravatar_id”gravatar_id:
string|null
Example
Section titled “Example”41d064eb2195891e12d0413f63227ea7base.user.url
Section titled “base.user.url”url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocatbase.user.html_url
Section titled “base.user.html_url”html_url:
string
Format: uri
Example
Section titled “Example”https://github.com/octocatbase.user.followers_url
Section titled “base.user.followers_url”followers_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/followersbase.user.following_url
Section titled “base.user.following_url”following_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/following{/other_user}base.user.gists_url
Section titled “base.user.gists_url”gists_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/gists{/gist_id}base.user.starred_url
Section titled “base.user.starred_url”starred_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/starred{/owner}{/repo}base.user.subscriptions_url
Section titled “base.user.subscriptions_url”subscriptions_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/subscriptionsbase.user.organizations_url
Section titled “base.user.organizations_url”organizations_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/orgsbase.user.repos_url
Section titled “base.user.repos_url”repos_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/reposbase.user.events_url
Section titled “base.user.events_url”events_url:
string
Example
Section titled “Example”https://api.github.com/users/octocat/events{/privacy}base.user.received_events_url
Section titled “base.user.received_events_url”received_events_url:
string
Format: uri
Example
Section titled “Example”https://api.github.com/users/octocat/received_eventsbase.user.type
Section titled “base.user.type”type:
string
Example
Section titled “Example”Userbase.user.site_admin
Section titled “base.user.site_admin”site_admin:
boolean
base.user.starred_at?
Section titled “base.user.starred_at?”
optionalstarred_at:string
Example
Section titled “Example”"2020-07-09T00:17:55Z"base.user.user_view_type?
Section titled “base.user.user_view_type?”
optionaluser_view_type:string
Example
Section titled “Example”public_links
Section titled “_links”_links:
object
_links.comments
Section titled “_links.comments”comments:
object
_links.comments.href
Section titled “_links.comments.href”href:
string
_links.commits
Section titled “_links.commits”commits:
object
_links.commits.href
Section titled “_links.commits.href”href:
string
_links.statuses
Section titled “_links.statuses”statuses:
object
_links.statuses.href
Section titled “_links.statuses.href”href:
string
_links.html
Section titled “_links.html”html:
object
_links.html.href
Section titled “_links.html.href”href:
string
_links.issue
Section titled “_links.issue”issue:
object
_links.issue.href
Section titled “_links.issue.href”href:
string
_links.review_comments
Section titled “_links.review_comments”review_comments:
object
_links.review_comments.href
Section titled “_links.review_comments.href”href:
string
_links.review_comment
Section titled “_links.review_comment”review_comment:
object
_links.review_comment.href
Section titled “_links.review_comment.href”href:
string
_links.self
Section titled “_links.self”self:
object
_links.self.href
Section titled “_links.self.href”href:
string
author_association
Section titled “author_association”author_association:
"COLLABORATOR"|"CONTRIBUTOR"|"FIRST_TIMER"|"FIRST_TIME_CONTRIBUTOR"|"MANNEQUIN"|"MEMBER"|"NONE"|"OWNER"
auto_merge
Section titled “auto_merge”auto_merge: {
enabled_by: {name?:string|null;email?:string|null;login:string;id:number;node_id:string;avatar_url:string;gravatar_id:string|null;url:string;html_url:string;followers_url:string;following_url:string;gists_url:string;starred_url:string;subscriptions_url:string;organizations_url:string;repos_url:string;events_url:string;received_events_url:string;type:string;site_admin:boolean;starred_at?:string;user_view_type?:string; };merge_method:"merge"|"squash"|"rebase";commit_title:string;commit_message:string; } |null
Type Declaration
Section titled “Type Declaration”{ enabled_by: { name?: string | null; email?: string | null; login: string; id: number; node_id: string; avatar_url: string; gravatar_id: string | null; url: string; html_url: string; followers_url: string; following_url: string; gists_url: string; starred_url: string; subscriptions_url: string; organizations_url: string; repos_url: string; events_url: string; received_events_url: string; type: string; site_admin: boolean; starred_at?: string; user_view_type?: string; }; merge_method: "merge" | "squash" | "rebase"; commit_title: string; commit_message: string; }
null
draft?
Section titled “draft?”
optionaldraft:boolean
Description
Section titled “Description”Indicates whether or not the pull request is a draft.
Example
Section titled “Example”falsemerged
Section titled “merged”merged:
boolean
mergeable
Section titled “mergeable”mergeable:
boolean|null
Example
Section titled “Example”truerebaseable?
Section titled “rebaseable?”
optionalrebaseable:boolean|null
Example
Section titled “Example”truemergeable_state
Section titled “mergeable_state”mergeable_state:
string
Example
Section titled “Example”cleanmerged_by
Section titled “merged_by”merged_by: {
name?:string|null;email?:string|null;login:string;id:number;node_id:string;avatar_url:string;gravatar_id:string|null;url:string;html_url:string;followers_url:string;following_url:string;gists_url:string;starred_url:string;subscriptions_url:string;organizations_url:string;repos_url:string;events_url:string;received_events_url:string;type:string;site_admin:boolean;starred_at?:string;user_view_type?:string; } |null
Type Declaration
Section titled “Type Declaration”{ name?: string | null; email?: string | null; login: string; id: number; node_id: string; avatar_url: string; gravatar_id: string | null; url: string; html_url: string; followers_url: string; following_url: string; gists_url: string; starred_url: string; subscriptions_url: string; organizations_url: string; repos_url: string; events_url: string; received_events_url: string; type: string; site_admin: boolean; starred_at?: string; user_view_type?: string; }
null
comments
Section titled “comments”comments:
number
Example
Section titled “Example”10review_comments
Section titled “review_comments”review_comments:
number
Example
Section titled “Example”0maintainer_can_modify
Section titled “maintainer_can_modify”maintainer_can_modify:
boolean
Description
Section titled “Description”Indicates whether maintainers can modify the pull request.
Example
Section titled “Example”truecommits
Section titled “commits”commits:
number
Example
Section titled “Example”3additions
Section titled “additions”additions:
number
Example
Section titled “Example”100deletions
Section titled “deletions”deletions:
number
Example
Section titled “Example”3changed_files
Section titled “changed_files”changed_files:
number
Example
Section titled “Example”5number
Section titled “number”number:
number
type:
"pull_request"