repos

Create a repository using a template

Creates a new repository using a repository template. Use the template_owner and template_repo route parameters to specify the repository to use as the template. If the repository is not public, the authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the Get a repository endpoint and check that the is_template key is true.

OAuth app tokens and personal access tokens (classic) need the public_repo or repo scope to create a public repository, and repo scope to create a private repository.

post/repos/{template_owner}/{template_repo}/generate

Path parameters

template_ownerstring required

The account owner of the template repository. The name is not case sensitive.

template_repostring required

The name of the template repository without the .git extension. The name is not case sensitive.

Request body

ownerstring

The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.

namestring required

The name of the new repository.

descriptionstring

A short description of the new repository.

include_all_branchesboolean

Set to true to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: false.

privateboolean

Either true to create a new private repository or false to create a new public one.

Response

Response

idinteger required
node_idstring required
namestring required
full_namestring required
privateboolean required
html_urlstring uri required
descriptionstring nullable required
forkboolean required
urlstring uri required
archive_urlstring required
assignees_urlstring required
blobs_urlstring required
branches_urlstring required
collaborators_urlstring required
comments_urlstring required
commits_urlstring required
compare_urlstring required
contents_urlstring required
contributors_urlstring uri required
deployments_urlstring uri required
downloads_urlstring uri required
events_urlstring uri required
forks_urlstring uri required
git_commits_urlstring required
git_refs_urlstring required
git_tags_urlstring required
git_urlstring required
issue_comment_urlstring required
issue_events_urlstring required
issues_urlstring required
keys_urlstring required
labels_urlstring required
languages_urlstring uri required
merges_urlstring uri required
milestones_urlstring required
notifications_urlstring required
pulls_urlstring required
releases_urlstring required
ssh_urlstring required
stargazers_urlstring uri required
statuses_urlstring required
subscribers_urlstring uri required
subscription_urlstring uri required
tags_urlstring uri required
teams_urlstring uri required
trees_urlstring required
clone_urlstring required
mirror_urlstring uri nullable required
hooks_urlstring uri required
svn_urlstring uri required
homepagestring uri nullable required
languagestring nullable required
forks_countinteger required
stargazers_countinteger required
watchers_countinteger required
sizeinteger required

The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.

default_branchstring required
open_issues_countinteger required
is_templateboolean
topicsstring[]
has_issuesboolean required
has_projectsboolean required
has_wikiboolean required
has_pagesboolean required
has_downloadsboolean
has_discussionsboolean required
archivedboolean required
disabledboolean required

Returns whether or not this repository disabled.

visibilitystring

The repository visibility: public, private, or internal.

pushed_atstring date-time required
created_atstring date-time required
updated_atstring date-time required
allow_rebase_mergeboolean
temp_clone_tokenstring nullable
allow_squash_mergeboolean
allow_auto_mergeboolean
delete_branch_on_mergeboolean
allow_merge_commitboolean
allow_update_branchboolean
use_squash_pr_title_as_defaultboolean
squash_merge_commit_title'PR_TITLE' | 'COMMIT_OR_PR_TITLE'

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).
squash_merge_commit_message'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'

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.
merge_commit_title'PR_TITLE' | 'MERGE_MESSAGE'

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).
merge_commit_message'PR_BODY' | 'PR_TITLE' | 'BLANK'

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.
allow_forkingboolean
web_commit_signoff_requiredboolean
subscribers_countinteger required
network_countinteger required
forksinteger required
master_branchstring
open_issuesinteger required
watchersinteger required
anonymous_access_enabledboolean

Whether anonymous git access is allowed.

Example response

{
  "id": 1296269,
  "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
  "name": "Hello-World",
  "full_name": "octocat/Hello-World",
  "owner": {
    "login": "octocat",
    "id": 1,
    "node_id": "MDQ6VXNlcjE=",
    "avatar_url": "https://github.com/images/error/octocat_happy.gif",
    "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
    "url": "https://api.github.com/users/octocat",
    "html_url": "https://github.com/octocat",
    "followers_url": "https://api.github.com/users/octocat/followers",
    "following_url": "https://api.github.com/users/octocat/following{/other_user}",
    "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
    "organizations_url": "https://api.github.com/users/octocat/orgs",
    "repos_url": "https://api.github.com/users/octocat/repos",
    "events_url": "https://api.github.com/users/octocat/events{/privacy}",
    "received_events_url": "https://api.github.com/users/octocat/received_events",
    "type": "User",
    "starred_at": "\"2020-07-09T00:17:55Z\""
  },
  "html_url": "https://github.com/octocat/Hello-World",
  "description": "This your first repo!",
  "url": "https://api.github.com/repos/octocat/Hello-World",
  "archive_url": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
  "assignees_url": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}",
  "blobs_url": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
  "branches_url": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}",
  "collaborators_url": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
  "comments_url": "http://api.github.com/repos/octocat/Hello-World/comments{/number}",
  "commits_url": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}",
  "compare_url": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
  "contents_url": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}",
  "contributors_url": "http://api.github.com/repos/octocat/Hello-World/contributors",
  "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
  "downloads_url": "http://api.github.com/repos/octocat/Hello-World/downloads",
  "events_url": "http://api.github.com/repos/octocat/Hello-World/events",
  "forks_url": "http://api.github.com/repos/octocat/Hello-World/forks",
  "git_commits_url": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
  "git_refs_url": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
  "git_tags_url": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
  "git_url": "git:github.com/octocat/Hello-World.git",
  "issue_comment_url": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
  "issue_events_url": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
  "issues_url": "http://api.github.com/repos/octocat/Hello-World/issues{/number}",
  "keys_url": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
  "labels_url": "http://api.github.com/repos/octocat/Hello-World/labels{/name}",
  "languages_url": "http://api.github.com/repos/octocat/Hello-World/languages",
  "merges_url": "http://api.github.com/repos/octocat/Hello-World/merges",
  "milestones_url": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}",
  "notifications_url": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
  "pulls_url": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}",
  "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}",
  "ssh_url": "git@github.com:octocat/Hello-World.git",
  "stargazers_url": "http://api.github.com/repos/octocat/Hello-World/stargazers",
  "statuses_url": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
  "subscribers_url": "http://api.github.com/repos/octocat/Hello-World/subscribers",
  "subscription_url": "http://api.github.com/repos/octocat/Hello-World/subscription",
  "tags_url": "http://api.github.com/repos/octocat/Hello-World/tags",
  "teams_url": "http://api.github.com/repos/octocat/Hello-World/teams",
  "trees_url": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
  "clone_url": "https://github.com/octocat/Hello-World.git",
  "mirror_url": "git:git.example.com/octocat/Hello-World",
  "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks",
  "svn_url": "https://svn.github.com/octocat/Hello-World",
  "homepage": "https://github.com",
  "forks_count": 9,
  "stargazers_count": 80,
  "watchers_count": 80,
  "size": 108,
  "default_branch": "master",
  "is_template": true,
  "topics": [
    "octocat",
    "atom",
    "electron",
    "API"
  ],
  "has_issues": true,
  "has_projects": true,
  "has_wiki": true,
  "has_downloads": true,
  "has_discussions": true,
  "visibility": "public",
  "pushed_at": "2011-01-26T19:06:43Z",
  "created_at": "2011-01-26T19:01:12Z",
  "updated_at": "2011-01-26T19:14:43Z",
  "allow_rebase_merge": true,
  "template_repository": {
    "id": 42,
    "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
    "name": "Team Environment",
    "full_name": "octocat/Hello-World",
    "license": {
      "key": "mit",
      "name": "MIT License",
      "url": "https://api.github.com/licenses/mit",
      "spdx_id": "MIT",
      "node_id": "MDc6TGljZW5zZW1pdA=="
    },
    "owner": {
      "login": "octocat",
      "id": 1,
      "node_id": "MDQ6VXNlcjE=",
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
      "url": "https://api.github.com/users/octocat",
      "html_url": "https://github.com/octocat",
      "followers_url": "https://api.github.com/users/octocat/followers",
      "following_url": "https://api.github.com/users/octocat/following{/other_user}",
      "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
      "organizations_url": "https://api.github.com/users/octocat/orgs",
      "repos_url": "https://api.github.com/users/octocat/repos",
      "events_url": "https://api.github.com/users/octocat/events{/privacy}",
      "received_events_url": "https://api.github.com/users/octocat/received_events",
      "type": "User",
      "starred_at": "\"2020-07-09T00:17:55Z\""
    },
    "html_url": "https://github.com/octocat/Hello-World",
    "description": "This your first repo!",
    "url": "https://api.github.com/repos/octocat/Hello-World",
    "archive_url": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
    "assignees_url": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}",
    "blobs_url": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
    "branches_url": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}",
    "collaborators_url": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
    "comments_url": "http://api.github.com/repos/octocat/Hello-World/comments{/number}",
    "commits_url": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}",
    "compare_url": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
    "contents_url": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}",
    "contributors_url": "http://api.github.com/repos/octocat/Hello-World/contributors",
    "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
    "downloads_url": "http://api.github.com/repos/octocat/Hello-World/downloads",
    "events_url": "http://api.github.com/repos/octocat/Hello-World/events",
    "forks_url": "http://api.github.com/repos/octocat/Hello-World/forks",
    "git_commits_url": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
    "git_refs_url": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
    "git_tags_url": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
    "git_url": "git:github.com/octocat/Hello-World.git",
    "issue_comment_url": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
    "issue_events_url": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
    "issues_url": "http://api.github.com/repos/octocat/Hello-World/issues{/number}",
    "keys_url": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
    "labels_url": "http://api.github.com/repos/octocat/Hello-World/labels{/name}",
    "languages_url": "http://api.github.com/repos/octocat/Hello-World/languages",
    "merges_url": "http://api.github.com/repos/octocat/Hello-World/merges",
    "milestones_url": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}",
    "notifications_url": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
    "pulls_url": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}",
    "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}",
    "ssh_url": "git@github.com:octocat/Hello-World.git",
    "stargazers_url": "http://api.github.com/repos/octocat/Hello-World/stargazers",
    "statuses_url": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
    "subscribers_url": "http://api.github.com/repos/octocat/Hello-World/subscribers",
    "subscription_url": "http://api.github.com/repos/octocat/Hello-World/subscription",
    "tags_url": "http://api.github.com/repos/octocat/Hello-World/tags",
    "teams_url": "http://api.github.com/repos/octocat/Hello-World/teams",
    "trees_url": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
    "clone_url": "https://github.com/octocat/Hello-World.git",
    "mirror_url": "git:git.example.com/octocat/Hello-World",
    "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks",
    "svn_url": "https://svn.github.com/octocat/Hello-World",
    "homepage": "https://github.com",
    "forks_count": 9,
    "stargazers_count": 80,
    "watchers_count": 80,
    "size": 108,
    "default_branch": "master",
    "is_template": true,
    "has_issues": true,
    "has_projects": true,
    "has_wiki": true,
    "has_downloads": true,
    "has_discussions": true,
    "pushed_at": "2011-01-26T19:06:43Z",
    "created_at": "2011-01-26T19:01:12Z",
    "updated_at": "2011-01-26T19:14:43Z",
    "allow_rebase_merge": true,
    "allow_squash_merge": true,
    "allow_merge_commit": true,
    "starred_at": "\"2020-07-09T00:17:42Z\""
  },
  "allow_squash_merge": true,
  "allow_merge_commit": true,
  "allow_update_branch": true,
  "squash_merge_commit_title": "PR_TITLE",
  "squash_merge_commit_message": "PR_BODY",
  "merge_commit_title": "PR_TITLE",
  "merge_commit_message": "PR_BODY",
  "allow_forking": true,
  "subscribers_count": 42,
  "license": {
    "key": "mit",
    "name": "MIT License",
    "url": "https://api.github.com/licenses/mit",
    "spdx_id": "MIT",
    "node_id": "MDc6TGljZW5zZW1pdA=="
  },
  "organization": {
    "login": "octocat",
    "id": 1,
    "node_id": "MDQ6VXNlcjE=",
    "avatar_url": "https://github.com/images/error/octocat_happy.gif",
    "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
    "url": "https://api.github.com/users/octocat",
    "html_url": "https://github.com/octocat",
    "followers_url": "https://api.github.com/users/octocat/followers",
    "following_url": "https://api.github.com/users/octocat/following{/other_user}",
    "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
    "organizations_url": "https://api.github.com/users/octocat/orgs",
    "repos_url": "https://api.github.com/users/octocat/repos",
    "events_url": "https://api.github.com/users/octocat/events{/privacy}",
    "received_events_url": "https://api.github.com/users/octocat/received_events",
    "type": "User",
    "starred_at": "\"2020-07-09T00:17:55Z\""
  },
  "parent": {
    "id": 42,
    "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
    "name": "Team Environment",
    "full_name": "octocat/Hello-World",
    "license": {
      "key": "mit",
      "name": "MIT License",
      "url": "https://api.github.com/licenses/mit",
      "spdx_id": "MIT",
      "node_id": "MDc6TGljZW5zZW1pdA=="
    },
    "owner": {
      "login": "octocat",
      "id": 1,
      "node_id": "MDQ6VXNlcjE=",
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
      "url": "https://api.github.com/users/octocat",
      "html_url": "https://github.com/octocat",
      "followers_url": "https://api.github.com/users/octocat/followers",
      "following_url": "https://api.github.com/users/octocat/following{/other_user}",
      "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
      "organizations_url": "https://api.github.com/users/octocat/orgs",
      "repos_url": "https://api.github.com/users/octocat/repos",
      "events_url": "https://api.github.com/users/octocat/events{/privacy}",
      "received_events_url": "https://api.github.com/users/octocat/received_events",
      "type": "User",
      "starred_at": "\"2020-07-09T00:17:55Z\""
    },
    "html_url": "https://github.com/octocat/Hello-World",
    "description": "This your first repo!",
    "url": "https://api.github.com/repos/octocat/Hello-World",
    "archive_url": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
    "assignees_url": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}",
    "blobs_url": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
    "branches_url": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}",
    "collaborators_url": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
    "comments_url": "http://api.github.com/repos/octocat/Hello-World/comments{/number}",
    "commits_url": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}",
    "compare_url": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
    "contents_url": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}",
    "contributors_url": "http://api.github.com/repos/octocat/Hello-World/contributors",
    "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
    "downloads_url": "http://api.github.com/repos/octocat/Hello-World/downloads",
    "events_url": "http://api.github.com/repos/octocat/Hello-World/events",
    "forks_url": "http://api.github.com/repos/octocat/Hello-World/forks",
    "git_commits_url": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
    "git_refs_url": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
    "git_tags_url": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
    "git_url": "git:github.com/octocat/Hello-World.git",
    "issue_comment_url": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
    "issue_events_url": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
    "issues_url": "http://api.github.com/repos/octocat/Hello-World/issues{/number}",
    "keys_url": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
    "labels_url": "http://api.github.com/repos/octocat/Hello-World/labels{/name}",
    "languages_url": "http://api.github.com/repos/octocat/Hello-World/languages",
    "merges_url": "http://api.github.com/repos/octocat/Hello-World/merges",
    "milestones_url": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}",
    "notifications_url": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
    "pulls_url": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}",
    "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}",
    "ssh_url": "git@github.com:octocat/Hello-World.git",
    "stargazers_url": "http://api.github.com/repos/octocat/Hello-World/stargazers",
    "statuses_url": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
    "subscribers_url": "http://api.github.com/repos/octocat/Hello-World/subscribers",
    "subscription_url": "http://api.github.com/repos/octocat/Hello-World/subscription",
    "tags_url": "http://api.github.com/repos/octocat/Hello-World/tags",
    "teams_url": "http://api.github.com/repos/octocat/Hello-World/teams",
    "trees_url": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
    "clone_url": "https://github.com/octocat/Hello-World.git",
    "mirror_url": "git:git.example.com/octocat/Hello-World",
    "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks",
    "svn_url": "https://svn.github.com/octocat/Hello-World",
    "homepage": "https://github.com",
    "forks_count": 9,
    "stargazers_count": 80,
    "watchers_count": 80,
    "size": 108,
    "default_branch": "master",
    "is_template": true,
    "has_issues": true,
    "has_projects": true,
    "has_wiki": true,
    "has_downloads": true,
    "has_discussions": true,
    "pushed_at": "2011-01-26T19:06:43Z",
    "created_at": "2011-01-26T19:01:12Z",
    "updated_at": "2011-01-26T19:14:43Z",
    "allow_rebase_merge": true,
    "allow_squash_merge": true,
    "allow_merge_commit": true,
    "starred_at": "\"2020-07-09T00:17:42Z\""
  },
  "source": {
    "id": 42,
    "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
    "name": "Team Environment",
    "full_name": "octocat/Hello-World",
    "license": {
      "key": "mit",
      "name": "MIT License",
      "url": "https://api.github.com/licenses/mit",
      "spdx_id": "MIT",
      "node_id": "MDc6TGljZW5zZW1pdA=="
    },
    "owner": {
      "login": "octocat",
      "id": 1,
      "node_id": "MDQ6VXNlcjE=",
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
      "url": "https://api.github.com/users/octocat",
      "html_url": "https://github.com/octocat",
      "followers_url": "https://api.github.com/users/octocat/followers",
      "following_url": "https://api.github.com/users/octocat/following{/other_user}",
      "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
      "organizations_url": "https://api.github.com/users/octocat/orgs",
      "repos_url": "https://api.github.com/users/octocat/repos",
      "events_url": "https://api.github.com/users/octocat/events{/privacy}",
      "received_events_url": "https://api.github.com/users/octocat/received_events",
      "type": "User",
      "starred_at": "\"2020-07-09T00:17:55Z\""
    },
    "html_url": "https://github.com/octocat/Hello-World",
    "description": "This your first repo!",
    "url": "https://api.github.com/repos/octocat/Hello-World",
    "archive_url": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
    "assignees_url": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}",
    "blobs_url": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
    "branches_url": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}",
    "collaborators_url": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
    "comments_url": "http://api.github.com/repos/octocat/Hello-World/comments{/number}",
    "commits_url": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}",
    "compare_url": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
    "contents_url": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}",
    "contributors_url": "http://api.github.com/repos/octocat/Hello-World/contributors",
    "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
    "downloads_url": "http://api.github.com/repos/octocat/Hello-World/downloads",
    "events_url": "http://api.github.com/repos/octocat/Hello-World/events",
    "forks_url": "http://api.github.com/repos/octocat/Hello-World/forks",
    "git_commits_url": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
    "git_refs_url": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
    "git_tags_url": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
    "git_url": "git:github.com/octocat/Hello-World.git",
    "issue_comment_url": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
    "issue_events_url": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
    "issues_url": "http://api.github.com/repos/octocat/Hello-World/issues{/number}",
    "keys_url": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
    "labels_url": "http://api.github.com/repos/octocat/Hello-World/labels{/name}",
    "languages_url": "http://api.github.com/repos/octocat/Hello-World/languages",
    "merges_url": "http://api.github.com/repos/octocat/Hello-World/merges",
    "milestones_url": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}",
    "notifications_url": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
    "pulls_url": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}",
    "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}",
    "ssh_url": "git@github.com:octocat/Hello-World.git",
    "stargazers_url": "http://api.github.com/repos/octocat/Hello-World/stargazers",
    "statuses_url": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
    "subscribers_url": "http://api.github.com/repos/octocat/Hello-World/subscribers",
    "subscription_url": "http://api.github.com/repos/octocat/Hello-World/subscription",
    "tags_url": "http://api.github.com/repos/octocat/Hello-World/tags",
    "teams_url": "http://api.github.com/repos/octocat/Hello-World/teams",
    "trees_url": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
    "clone_url": "https://github.com/octocat/Hello-World.git",
    "mirror_url": "git:git.example.com/octocat/Hello-World",
    "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks",
    "svn_url": "https://svn.github.com/octocat/Hello-World",
    "homepage": "https://github.com",
    "forks_count": 9,
    "stargazers_count": 80,
    "watchers_count": 80,
    "size": 108,
    "default_branch": "master",
    "is_template": true,
    "has_issues": true,
    "has_projects": true,
    "has_wiki": true,
    "has_downloads": true,
    "has_discussions": true,
    "pushed_at": "2011-01-26T19:06:43Z",
    "created_at": "2011-01-26T19:01:12Z",
    "updated_at": "2011-01-26T19:14:43Z",
    "allow_rebase_merge": true,
    "allow_squash_merge": true,
    "allow_merge_commit": true,
    "starred_at": "\"2020-07-09T00:17:42Z\""
  },
  "code_of_conduct": {
    "url": "https://api.github.com/repos/github/docs/community/code_of_conduct",
    "key": "citizen_code_of_conduct",
    "name": "Citizen Code of Conduct",
    "html_url": "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
  }
}

Changes

Changed in 2 of the 50 revisions of this API.1013149

  • 3.8258fbce0110a12See the full diff
    • removed the optional property parent/network_count from the response with the 201 status

      response-optional-property-removed

    • removed the optional property parent/organization from the response with the 201 status

      response-optional-property-removed

    • removed the optional property parent/subscribers_count from the response with the 201 status

      response-optional-property-removed

    • removed the optional property parent/template_repository from the response with the 201 status

      response-optional-property-removed

    • removed the optional property source/network_count from the response with the 201 status

      response-optional-property-removed

    • removed the optional property source/organization from the response with the 201 status

      response-optional-property-removed

    • removed the optional property source/subscribers_count from the response with the 201 status

      response-optional-property-removed

    • removed the optional property source/template_repository from the response with the 201 status

      response-optional-property-removed

    • removed the optional property template_repository/network_count from the response with the 201 status

      response-optional-property-removed

    • removed the optional property template_repository/organization from the response with the 201 status

      response-optional-property-removed

    • removed the optional property template_repository/subscribers_count from the response with the 201 status

      response-optional-property-removed

    • removed the optional property template_repository/template_repository from the response with the 201 status

      response-optional-property-removed

  • 3.8145a50f297f8101149See the full diff
    • the response property temp_clone_token became nullable for the status 201

      response-property-became-nullable

    • the response property template_repository/created_at became nullable for the status 201

      response-property-became-nullable

    • the response property template_repository/description became nullable for the status 201

      response-property-became-nullable

    • the response property template_repository/homepage became nullable for the status 201

      response-property-became-nullable

    • the response property template_repository/language became nullable for the status 201

      response-property-became-nullable

    • the response property template_repository/mirror_url became nullable for the status 201

      response-property-became-nullable

    • the response property template_repository/owner/gravatar_id became nullable for the status 201

      response-property-became-nullable

    • the response property template_repository/pushed_at became nullable for the status 201

      response-property-became-nullable

    • the response property template_repository/updated_at became nullable for the status 201

      response-property-became-nullable

    • the response property has_downloads became optional for the status 201

      response-property-became-optional

    • removed the optional property starred_at from the response with the 201 status

      response-optional-property-removed

    • added the optional property code_of_conduct to the response with the 201 status

      response-optional-property-added

    • added the optional property parent to the response with the 201 status

      response-optional-property-added

    • added the optional property security_and_analysis to the response with the 201 status

      response-optional-property-added

    • added the optional property source to the response with the 201 status

      response-optional-property-added

    • added the optional property template_repository/allow_forking to the response with the 201 status

      response-optional-property-added

    • added the optional property template_repository/anonymous_access_enabled to the response with the 201 status

      response-optional-property-added

    • added the optional property template_repository/has_discussions to the response with the 201 status

      response-optional-property-added

    • added the optional property template_repository/master_branch to the response with the 201 status

      response-optional-property-added

    • added the optional property template_repository/organization to the response with the 201 status

      response-optional-property-added

    • added the optional property template_repository/owner/email to the response with the 201 status

      response-optional-property-added

    • added the optional property template_repository/owner/name to the response with the 201 status

      response-optional-property-added

    • added the optional property template_repository/owner/starred_at to the response with the 201 status

      response-optional-property-added

    • added the optional property template_repository/starred_at to the response with the 201 status

      response-optional-property-added

    • added the optional property template_repository/template_repository to the response with the 201 status

      response-optional-property-added

    • added the optional property template_repository/web_commit_signoff_required to the response with the 201 status

      response-optional-property-added

    • the response property has_discussions became required for the status 201

      response-property-became-required

    • the response property network_count became required for the status 201

      response-property-became-required

    • the response property subscribers_count became required for the status 201

      response-property-became-required

    • the response property template_repository/archive_url became required for the status 201

      response-property-became-required

    • the response property template_repository/archived became required for the status 201

      response-property-became-required

    • the response property template_repository/assignees_url became required for the status 201

      response-property-became-required

    • the response property template_repository/blobs_url became required for the status 201

      response-property-became-required

    • the response property template_repository/branches_url became required for the status 201

      response-property-became-required

    • the response property template_repository/clone_url became required for the status 201

      response-property-became-required

    • the response property template_repository/collaborators_url became required for the status 201

      response-property-became-required

    • the response property template_repository/comments_url became required for the status 201

      response-property-became-required

    • the response property template_repository/commits_url became required for the status 201

      response-property-became-required

    • the response property template_repository/compare_url became required for the status 201

      response-property-became-required

    • the response property template_repository/contents_url became required for the status 201

      response-property-became-required

    • the response property template_repository/contributors_url became required for the status 201

      response-property-became-required

    • the response property template_repository/created_at became required for the status 201

      response-property-became-required

    • the response property template_repository/default_branch became required for the status 201

      response-property-became-required

    • the response property template_repository/deployments_url became required for the status 201

      response-property-became-required

    • the response property template_repository/description became required for the status 201

      response-property-became-required

    • the response property template_repository/disabled became required for the status 201

      response-property-became-required

    • the response property template_repository/downloads_url became required for the status 201

      response-property-became-required

    • the response property template_repository/events_url became required for the status 201

      response-property-became-required

    • the response property template_repository/fork became required for the status 201

      response-property-became-required

    • the response property template_repository/forks_count became required for the status 201

      response-property-became-required

    • the response property template_repository/forks_url became required for the status 201

      response-property-became-required

    • the response property template_repository/full_name became required for the status 201

      response-property-became-required

    • the response property template_repository/git_commits_url became required for the status 201

      response-property-became-required

    • the response property template_repository/git_refs_url became required for the status 201

      response-property-became-required

    • the response property template_repository/git_tags_url became required for the status 201

      response-property-became-required

    • the response property template_repository/git_url became required for the status 201

      response-property-became-required

    • the response property template_repository/has_downloads became required for the status 201

      response-property-became-required

    • the response property template_repository/has_issues became required for the status 201

      response-property-became-required

    • the response property template_repository/has_pages became required for the status 201

      response-property-became-required

    • the response property template_repository/has_projects became required for the status 201

      response-property-became-required

    • the response property template_repository/has_wiki became required for the status 201

      response-property-became-required

    • the response property template_repository/homepage became required for the status 201

      response-property-became-required

    • the response property template_repository/hooks_url became required for the status 201

      response-property-became-required

    • the response property template_repository/html_url became required for the status 201

      response-property-became-required

    • the response property template_repository/id became required for the status 201

      response-property-became-required

    • the response property template_repository/issue_comment_url became required for the status 201

      response-property-became-required

    • the response property template_repository/issue_events_url became required for the status 201

      response-property-became-required

    • the response property template_repository/issues_url became required for the status 201

      response-property-became-required

    • the response property template_repository/keys_url became required for the status 201

      response-property-became-required

    • the response property template_repository/labels_url became required for the status 201

      response-property-became-required

    • the response property template_repository/language became required for the status 201

      response-property-became-required

    • the response property template_repository/languages_url became required for the status 201

      response-property-became-required

    • the response property template_repository/merges_url became required for the status 201

      response-property-became-required

    • the response property template_repository/milestones_url became required for the status 201

      response-property-became-required

    • the response property template_repository/mirror_url became required for the status 201

      response-property-became-required

    • the response property template_repository/name became required for the status 201

      response-property-became-required

    • the response property template_repository/node_id became required for the status 201

      response-property-became-required

    • the response property template_repository/notifications_url became required for the status 201

      response-property-became-required

    • the response property template_repository/open_issues_count became required for the status 201

      response-property-became-required

    • the response property template_repository/owner became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/avatar_url became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/events_url became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/followers_url became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/following_url became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/gists_url became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/gravatar_id became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/html_url became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/id became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/login became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/node_id became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/organizations_url became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/received_events_url became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/repos_url became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/site_admin became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/starred_url became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/subscriptions_url became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/type became required for the status 201

      response-property-became-required

    • the response property template_repository/owner/url became required for the status 201

      response-property-became-required

    • the response property template_repository/permissions/admin became required for the status 201

      response-property-became-required

    • the response property template_repository/permissions/pull became required for the status 201

      response-property-became-required

    • the response property template_repository/permissions/push became required for the status 201

      response-property-became-required

    • the response property template_repository/private became required for the status 201

      response-property-became-required

    • the response property template_repository/pulls_url became required for the status 201

      response-property-became-required

    • the response property template_repository/pushed_at became required for the status 201

      response-property-became-required

    • the response property template_repository/releases_url became required for the status 201

      response-property-became-required

    • the response property template_repository/size became required for the status 201

      response-property-became-required

    • the response property template_repository/ssh_url became required for the status 201

      response-property-became-required

    • the response property template_repository/stargazers_count became required for the status 201

      response-property-became-required

    • the response property template_repository/stargazers_url became required for the status 201

      response-property-became-required

    • the response property template_repository/statuses_url became required for the status 201

      response-property-became-required

    • the response property template_repository/subscribers_url became required for the status 201

      response-property-became-required

    • the response property template_repository/subscription_url became required for the status 201

      response-property-became-required

    • the response property template_repository/svn_url became required for the status 201

      response-property-became-required

    • the response property template_repository/tags_url became required for the status 201

      response-property-became-required

    • the response property template_repository/teams_url became required for the status 201

      response-property-became-required

    • the response property template_repository/trees_url became required for the status 201

      response-property-became-required

    • the response property template_repository/updated_at became required for the status 201

      response-property-became-required

    • the response property template_repository/url became required for the status 201

      response-property-became-required

    • the response property template_repository/watchers_count became required for the status 201

      response-property-became-required

    • the allow_auto_merge response's property default value false was added for the status 201

      response-property-default-value-added

    • the allow_merge_commit response's property default value true was added for the status 201

      response-property-default-value-added

    • the allow_rebase_merge response's property default value true was added for the status 201

      response-property-default-value-added

    • the allow_squash_merge response's property default value true was added for the status 201

      response-property-default-value-added

    • the allow_update_branch response's property default value false was added for the status 201

      response-property-default-value-added

    • the anonymous_access_enabled response's property default value true was added for the status 201

      response-property-default-value-added

    • the archived response's property default value false was added for the status 201

      response-property-default-value-added

    • the delete_branch_on_merge response's property default value false was added for the status 201

      response-property-default-value-added

    • the has_downloads response's property default value true was added for the status 201

      response-property-default-value-added

    • the has_issues response's property default value true was added for the status 201

      response-property-default-value-added

    • the has_projects response's property default value true was added for the status 201

      response-property-default-value-added

    • the has_wiki response's property default value true was added for the status 201

      response-property-default-value-added

    • the is_template response's property default value false was added for the status 201

      response-property-default-value-added

    • the private response's property default value false was added for the status 201

      response-property-default-value-added

    • the use_squash_pr_title_as_default response's property default value false was added for the status 201

      response-property-default-value-added

    • the visibility response's property default value public was added for the status 201

      response-property-default-value-added

    • the allow_auto_merge response's property default value false was removed for the status 201

      response-property-default-value-removed

    • the allow_merge_commit response's property default value true was removed for the status 201

      response-property-default-value-removed

    • the allow_rebase_merge response's property default value true was removed for the status 201

      response-property-default-value-removed

    • the allow_squash_merge response's property default value true was removed for the status 201

      response-property-default-value-removed

    • the allow_update_branch response's property default value false was removed for the status 201

      response-property-default-value-removed

    • the archived response's property default value false was removed for the status 201

      response-property-default-value-removed

    • the delete_branch_on_merge response's property default value false was removed for the status 201

      response-property-default-value-removed

    • the has_discussions response's property default value false was removed for the status 201

      response-property-default-value-removed

    • the has_downloads response's property default value true was removed for the status 201

      response-property-default-value-removed

    • the has_issues response's property default value true was removed for the status 201

      response-property-default-value-removed

    • the has_projects response's property default value true was removed for the status 201

      response-property-default-value-removed

    • the has_wiki response's property default value true was removed for the status 201

      response-property-default-value-removed

    • the is_template response's property default value false was removed for the status 201

      response-property-default-value-removed

    • the private response's property default value false was removed for the status 201

      response-property-default-value-removed

    • the use_squash_pr_title_as_default response's property default value false was removed for the status 201

      response-property-default-value-removed

    • the visibility response's property default value public was removed for the status 201

      response-property-default-value-removed

    • the web_commit_signoff_required response's property default value false was removed for the status 201

      response-property-default-value-removed

    • response property template_repository/has_downloads deprecated

      response-property-deprecated

    • response property template_repository/use_squash_pr_title_as_default deprecated

      response-property-deprecated

    • response property has_downloads reactivated

      response-property-reactivated

    • response property use_squash_pr_title_as_default reactivated

      response-property-reactivated

    • added the required property template_repository/forks to the response with the 201 status

      response-required-property-added

    • added the required property template_repository/license to the response with the 201 status

      response-required-property-added

    • added the required property template_repository/open_issues to the response with the 201 status

      response-required-property-added

    • added the required property template_repository/watchers to the response with the 201 status

      response-required-property-added