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

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.