Skip to main content

repos_for_auth_user

Overview

Namerepos_for_auth_user
TypeResource
Idgithub.repos.repos_for_auth_user

Fields

NameDatatypeDescription
idintegerUnique identifier of the repository
namestringThe name of the repository.
descriptionstring
releases_urlstring
issue_events_urlstring
sizeintegerThe size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.
contributors_urlstring
statuses_urlstring
git_refs_urlstring
allow_merge_commitbooleanWhether to allow merge commits for pull requests.
stargazers_urlstring
subscribers_countinteger
visibilitystringThe repository visibility: public, private, or internal.
html_urlstring
merge_commit_titlestringThe 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).
updated_atstring
anonymous_access_enabledbooleanWhether anonymous git access is enabled for this repository
git_tags_urlstring
starred_atstring
has_wikibooleanWhether the wiki is enabled.
allow_squash_mergebooleanWhether to allow squash merges for pull requests.
ownerobjectA GitHub user.
web_commit_signoff_requiredbooleanWhether to require contributors to sign off on web-based commits
topicsarray
languages_urlstring
contents_urlstring
homepagestring
pushed_atstring
tags_urlstring
watchersinteger
archive_urlstring
assignees_urlstring
forkboolean
permissionsobject
clone_urlstring
languagestring
disabledbooleanReturns whether or not this repository disabled.
organizationobjectA GitHub user.
is_templatebooleanWhether this repository acts as a template that can be used to generate new repositories.
forks_urlstring
has_downloadsbooleanWhether downloads are enabled.
archivedbooleanWhether the repository is archived.
privatebooleanWhether the repository is private or public.
template_repositoryobject
downloads_urlstring
urlstring
issue_comment_urlstring
default_branchstringThe default branch of the repository.
svn_urlstring
allow_rebase_mergebooleanWhether to allow rebase merges for pull requests.
blobs_urlstring
issues_urlstring
stargazers_countinteger
branches_urlstring
temp_clone_tokenstring
licenseobjectLicense Simple
has_discussionsbooleanWhether discussions are enabled.
delete_branch_on_mergebooleanWhether to delete head branches when pull requests are merged
pulls_urlstring
merge_commit_messagestringThe 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.
forks_countinteger
allow_update_branchbooleanWhether 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.
allow_forkingbooleanWhether to allow forking this repo
git_urlstring
open_issues_countinteger
teams_urlstring
squash_merge_commit_titlestringThe 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).
trees_urlstring
keys_urlstring
full_namestring
has_projectsbooleanWhether projects are enabled.
subscription_urlstring
comments_urlstring
collaborators_urlstring
has_pagesboolean
git_commits_urlstring
forksinteger
subscribers_urlstring
network_countinteger
open_issuesinteger
commits_urlstring
has_issuesbooleanWhether issues are enabled.
master_branchstring
created_atstring
merges_urlstring
ssh_urlstring
node_idstring
labels_urlstring
mirror_urlstring
squash_merge_commit_messagestringThe 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.
hooks_urlstring
notifications_urlstring
use_squash_pr_title_as_defaultbooleanWhether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use squash_merge_commit_title instead.
events_urlstring
deployments_urlstring
compare_urlstring
milestones_urlstring
allow_auto_mergebooleanWhether to allow Auto-merge to be used on pull requests.
watchers_countinteger

Methods

NameAccessible byRequired ParamsDescription
list_for_authenticated_userSELECTLists repositories that the authenticated user has explicit permission (:read, :write, or :admin) to access.

The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.
create_for_authenticated_userINSERTdata__nameCreates a new repository for the authenticated user.

OAuth scope requirements

When using OAuth, authorizations must include:

public_repo scope or repo scope to create a public repository. Note: For GitHub AE, use repo scope to create an internal repository.
repo scope to create a private repository.