h1alexbel / fakehub

GitHub API Server Stub. Fully functional fake version of a GitHub API that supports all the features and works locally, with no connection to GitHub at all.
MIT License
5 stars 0 forks source link

mock get repo by `{owner/repo}`: `GET /repos/{owner}/{repo}` #16

Open h1alexbel opened 5 months ago

h1alexbel commented 5 months ago

Let's mock the endpoint for getting repository by it's owner + repo.

Response we should serve:

{
  "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": "",
    "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",
    "site_admin": false
  },
  "private": false,
  "html_url": "https://github.com/octocat/Hello-World",
  "description": "This your first repo!",
  "fork": false,
  "url": "https://api.github.com/repos/octocat/Hello-World",
  "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
  "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
  "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
  "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
  "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
  "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
  "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
  "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
  "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
  "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
  "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
  "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
  "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
  "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
  "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
  "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
  "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
  "git_url": "git:github.com/octocat/Hello-World.git",
  "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
  "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
  "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
  "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
  "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
  "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
  "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
  "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
  "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
  "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
  "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
  "ssh_url": "git@github.com:octocat/Hello-World.git",
  "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
  "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
  "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
  "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
  "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
  "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
  "trees_url": "https://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": "https://api.github.com/repos/octocat/Hello-World/hooks",
  "svn_url": "https://svn.github.com/octocat/Hello-World",
  "homepage": "https://github.com",
  "forks_count": 9,
  "forks": 9,
  "stargazers_count": 80,
  "watchers_count": 80,
  "watchers": 80,
  "size": 108,
  "default_branch": "master",
  "open_issues_count": 0,
  "open_issues": 0,
  "is_template": false,
  "topics": [
    "octocat",
    "atom",
    "electron",
    "api"
  ],
  "has_issues": true,
  "has_projects": true,
  "has_wiki": true,
  "has_pages": false,
  "has_downloads": true,
  "has_discussions": false,
  "archived": false,
  "disabled": false,
  "visibility": "public",
  "pushed_at": "2011-01-26T19:06:43Z",
  "created_at": "2011-01-26T19:01:12Z",
  "updated_at": "2011-01-26T19:14:43Z",
  "permissions": {
    "pull": true,
    "push": false,
    "admin": false
  },
  "allow_rebase_merge": true,
  "template_repository": {
    "id": 1296269,
    "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
    "name": "Hello-World-Template",
    "full_name": "octocat/Hello-World-Template",
    "owner": {
      "login": "octocat",
      "id": 1,
      "node_id": "MDQ6VXNlcjE=",
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "gravatar_id": "",
      "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",
      "site_admin": false
    },
    "private": false,
    "html_url": "https://github.com/octocat/Hello-World-Template",
    "description": "This your first repo!",
    "fork": false,
    "url": "https://api.github.com/repos/octocat/Hello-World-Template",
    "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
    "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
    "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
    "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
    "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
    "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
    "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
    "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
    "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
    "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
    "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
    "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
    "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
    "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
    "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
    "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
    "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
    "git_url": "git:github.com/octocat/Hello-World-Template.git",
    "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
    "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
    "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
    "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
    "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
    "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
    "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
    "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
    "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
    "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
    "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
    "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
    "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
    "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
    "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
    "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
    "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
    "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
    "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
    "clone_url": "https://github.com/octocat/Hello-World-Template.git",
    "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
    "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
    "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
    "homepage": "https://github.com",
    "language": null,
    "forks": 9,
    "forks_count": 9,
    "stargazers_count": 80,
    "watchers_count": 80,
    "watchers": 80,
    "size": 108,
    "default_branch": "master",
    "open_issues": 0,
    "open_issues_count": 0,
    "is_template": true,
    "license": {
      "key": "mit",
      "name": "MIT License",
      "url": "https://api.github.com/licenses/mit",
      "spdx_id": "MIT",
      "node_id": "MDc6TGljZW5zZW1pdA==",
      "html_url": "https://api.github.com/licenses/mit"
    },
    "topics": [
      "octocat",
      "atom",
      "electron",
      "api"
    ],
    "has_issues": true,
    "has_projects": true,
    "has_wiki": true,
    "has_pages": false,
    "has_downloads": true,
    "archived": false,
    "disabled": false,
    "visibility": "public",
    "pushed_at": "2011-01-26T19:06:43Z",
    "created_at": "2011-01-26T19:01:12Z",
    "updated_at": "2011-01-26T19:14:43Z",
    "permissions": {
      "admin": false,
      "push": false,
      "pull": true
    },
    "allow_rebase_merge": true,
    "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
    "allow_squash_merge": true,
    "allow_auto_merge": false,
    "delete_branch_on_merge": true,
    "allow_merge_commit": true,
    "subscribers_count": 42,
    "network_count": 0
  },
  "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
  "allow_squash_merge": true,
  "allow_auto_merge": false,
  "delete_branch_on_merge": true,
  "allow_merge_commit": true,
  "allow_forking": true,
  "subscribers_count": 42,
  "network_count": 0,
  "license": {
    "key": "mit",
    "name": "MIT License",
    "spdx_id": "MIT",
    "url": "https://api.github.com/licenses/mit",
    "node_id": "MDc6TGljZW5zZW1pdA=="
  },
  "organization": {
    "login": "octocat",
    "id": 1,
    "node_id": "MDQ6VXNlcjE=",
    "avatar_url": "https://github.com/images/error/octocat_happy.gif",
    "gravatar_id": "",
    "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": "Organization",
    "site_admin": false
  },
  "parent": {
    "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": "",
      "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",
      "site_admin": false
    },
    "private": false,
    "html_url": "https://github.com/octocat/Hello-World",
    "description": "This your first repo!",
    "fork": false,
    "url": "https://api.github.com/repos/octocat/Hello-World",
    "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
    "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
    "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
    "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
    "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
    "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
    "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
    "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
    "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
    "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
    "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
    "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
    "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
    "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
    "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
    "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
    "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
    "git_url": "git:github.com/octocat/Hello-World.git",
    "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
    "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
    "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
    "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
    "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
    "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
    "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
    "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
    "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
    "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
    "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
    "ssh_url": "git@github.com:octocat/Hello-World.git",
    "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
    "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
    "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
    "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
    "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
    "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
    "trees_url": "https://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": "https://api.github.com/repos/octocat/Hello-World/hooks",
    "svn_url": "https://svn.github.com/octocat/Hello-World",
    "homepage": "https://github.com",
    "language": null,
    "forks_count": 9,
    "stargazers_count": 80,
    "watchers_count": 80,
    "size": 108,
    "default_branch": "master",
    "open_issues_count": 0,
    "is_template": true,
    "topics": [
      "octocat",
      "atom",
      "electron",
      "api"
    ],
    "has_issues": true,
    "has_projects": true,
    "has_wiki": true,
    "has_pages": false,
    "has_downloads": true,
    "archived": false,
    "disabled": false,
    "visibility": "public",
    "pushed_at": "2011-01-26T19:06:43Z",
    "created_at": "2011-01-26T19:01:12Z",
    "updated_at": "2011-01-26T19:14:43Z",
    "permissions": {
      "admin": false,
      "push": false,
      "pull": true
    },
    "allow_rebase_merge": true,
    "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
    "allow_squash_merge": true,
    "allow_auto_merge": false,
    "delete_branch_on_merge": true,
    "allow_merge_commit": true,
    "subscribers_count": 42,
    "network_count": 0,
    "license": {
      "key": "mit",
      "name": "MIT License",
      "url": "https://api.github.com/licenses/mit",
      "spdx_id": "MIT",
      "node_id": "MDc6TGljZW5zZW1pdA==",
      "html_url": "https://api.github.com/licenses/mit"
    },
    "forks": 1,
    "open_issues": 1,
    "watchers": 1
  },
  "source": {
    "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": "",
      "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",
      "site_admin": false
    },
    "private": false,
    "html_url": "https://github.com/octocat/Hello-World",
    "description": "This your first repo!",
    "fork": false,
    "url": "https://api.github.com/repos/octocat/Hello-World",
    "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
    "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
    "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
    "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
    "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
    "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
    "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
    "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
    "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
    "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
    "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
    "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
    "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
    "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
    "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
    "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
    "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
    "git_url": "git:github.com/octocat/Hello-World.git",
    "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
    "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
    "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
    "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
    "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
    "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
    "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
    "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
    "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
    "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
    "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
    "ssh_url": "git@github.com:octocat/Hello-World.git",
    "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
    "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
    "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
    "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
    "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
    "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
    "trees_url": "https://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": "https://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",
    "open_issues_count": 0,
    "is_template": true,
    "topics": [
      "octocat",
      "atom",
      "electron",
      "api"
    ],
    "has_issues": true,
    "has_projects": true,
    "has_wiki": true,
    "has_pages": false,
    "has_downloads": true,
    "archived": false,
    "disabled": false,
    "visibility": "public",
    "pushed_at": "2011-01-26T19:06:43Z",
    "created_at": "2011-01-26T19:01:12Z",
    "updated_at": "2011-01-26T19:14:43Z",
    "permissions": {
      "admin": false,
      "push": false,
      "pull": true
    },
    "allow_rebase_merge": true,
    "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
    "allow_squash_merge": true,
    "allow_auto_merge": false,
    "delete_branch_on_merge": true,
    "allow_merge_commit": true,
    "subscribers_count": 42,
    "network_count": 0,
    "license": {
      "key": "mit",
      "name": "MIT License",
      "url": "https://api.github.com/licenses/mit",
      "spdx_id": "MIT",
      "node_id": "MDc6TGljZW5zZW1pdA==",
      "html_url": "https://api.github.com/licenses/mit"
    },
    "forks": 1,
    "open_issues": 1,
    "watchers": 1,
    "security_and_analysis": {
      "advanced_security": {
        "status": "enabled"
      },
      "secret_scanning": {
        "status": "enabled"
      },
      "secret_scanning_push_protection": {
        "status": "disabled"
      }
    }
  }
}

API docs: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#get-a-repository

github-actions[bot] commented 5 months ago

@h1alexbel thanks for the report, here is a feedback:

Problems

  1. The bug report lacks details about the problem or issue faced by the developer. It only presents a description of a mock API endpoint and the JSON response that should be served. The report does not indicate what the issue is with the current implementation or what is expected to be fixed.
  2. The bug report fails to present any steps to reproduce the issue. It does not provide any information about the conditions or actions that led to the problem.
  3. The bug report does not include any error messages, stack traces, or logs related to the issue. These details are essential for identifying and resolving the problem.

I would recommend adding a clear description of the problem or issue faced by the developer to the bug report.

Please fix the bug report in order it to get resolved faster. Analyzed with Phind/Phind-CodeLlama-34B-v2

h1alexbel commented 4 months ago

OpenAPI spec:

"/repos/{owner}/{repo}":
    get:
      summary: Get a repository
      description: |-
        The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.

        **Note:** In order to see the `security_and_analysis` block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."
      tags:
      - repos
      operationId: repos/get
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/rest/repos/repos#get-a-repository
      parameters:
      - *229
      - *230
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema: *240
              examples:
                default-response:
                  summary: Default response
                  value:
                    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: ''
                      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
                      site_admin: false
                    private: false
                    html_url: https://github.com/octocat/Hello-World
                    description: This your first repo!
                    fork: false
                    url: https://api.github.com/repos/octocat/Hello-World
                    archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
                    assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
                    blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
                    branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
                    collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
                    comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
                    commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
                    compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
                    contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
                    contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
                    deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
                    downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
                    events_url: https://api.github.com/repos/octocat/Hello-World/events
                    forks_url: https://api.github.com/repos/octocat/Hello-World/forks
                    git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
                    git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
                    git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
                    git_url: git:github.com/octocat/Hello-World.git
                    issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
                    issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
                    issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
                    keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
                    labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
                    languages_url: https://api.github.com/repos/octocat/Hello-World/languages
                    merges_url: https://api.github.com/repos/octocat/Hello-World/merges
                    milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
                    notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
                    pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
                    releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
                    ssh_url: git@github.com:octocat/Hello-World.git
                    stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
                    statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
                    subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
                    subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
                    tags_url: https://api.github.com/repos/octocat/Hello-World/tags
                    teams_url: https://api.github.com/repos/octocat/Hello-World/teams
                    trees_url: https://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: https://api.github.com/repos/octocat/Hello-World/hooks
                    svn_url: https://svn.github.com/octocat/Hello-World
                    homepage: https://github.com
                    forks_count: 9
                    forks: 9
                    stargazers_count: 80
                    watchers_count: 80
                    watchers: 80
                    size: 108
                    default_branch: master
                    open_issues_count: 0
                    open_issues: 0
                    is_template: false
                    topics:
                    - octocat
                    - atom
                    - electron
                    - api
                    has_issues: true
                    has_projects: true
                    has_wiki: true
                    has_pages: false
                    has_downloads: true
                    has_discussions: false
                    archived: false
                    disabled: false
                    visibility: public
                    pushed_at: '2011-01-26T19:06:43Z'
                    created_at: '2011-01-26T19:01:12Z'
                    updated_at: '2011-01-26T19:14:43Z'
                    permissions:
                      pull: true
                      push: false
                      admin: false
                    allow_rebase_merge: true
                    template_repository:
                      id: 1296269
                      node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
                      name: Hello-World-Template
                      full_name: octocat/Hello-World-Template
                      owner:
                        login: octocat
                        id: 1
                        node_id: MDQ6VXNlcjE=
                        avatar_url: https://github.com/images/error/octocat_happy.gif
                        gravatar_id: ''
                        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
                        site_admin: false
                      private: false
                      html_url: https://github.com/octocat/Hello-World-Template
                      description: This your first repo!
                      fork: false
                      url: https://api.github.com/repos/octocat/Hello-World-Template
                      archive_url: https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}
                      assignees_url: https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}
                      blobs_url: https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}
                      branches_url: https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}
                      collaborators_url: https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}
                      comments_url: https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}
                      commits_url: https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}
                      compare_url: https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}
                      contents_url: https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}
                      contributors_url: https://api.github.com/repos/octocat/Hello-World-Template/contributors
                      deployments_url: https://api.github.com/repos/octocat/Hello-World-Template/deployments
                      downloads_url: https://api.github.com/repos/octocat/Hello-World-Template/downloads
                      events_url: https://api.github.com/repos/octocat/Hello-World-Template/events
                      forks_url: https://api.github.com/repos/octocat/Hello-World-Template/forks
                      git_commits_url: https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}
                      git_refs_url: https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}
                      git_tags_url: https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}
                      git_url: git:github.com/octocat/Hello-World-Template.git
                      issue_comment_url: https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}
                      issue_events_url: https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}
                      issues_url: https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}
                      keys_url: https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}
                      labels_url: https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}
                      languages_url: https://api.github.com/repos/octocat/Hello-World-Template/languages
                      merges_url: https://api.github.com/repos/octocat/Hello-World-Template/merges
                      milestones_url: https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}
                      notifications_url: https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}
                      pulls_url: https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}
                      releases_url: https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}
                      ssh_url: git@github.com:octocat/Hello-World-Template.git
                      stargazers_url: https://api.github.com/repos/octocat/Hello-World-Template/stargazers
                      statuses_url: https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}
                      subscribers_url: https://api.github.com/repos/octocat/Hello-World-Template/subscribers
                      subscription_url: https://api.github.com/repos/octocat/Hello-World-Template/subscription
                      tags_url: https://api.github.com/repos/octocat/Hello-World-Template/tags
                      teams_url: https://api.github.com/repos/octocat/Hello-World-Template/teams
                      trees_url: https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}
                      clone_url: https://github.com/octocat/Hello-World-Template.git
                      mirror_url: git:git.example.com/octocat/Hello-World-Template
                      hooks_url: https://api.github.com/repos/octocat/Hello-World-Template/hooks
                      svn_url: https://svn.github.com/octocat/Hello-World-Template
                      homepage: https://github.com
                      language: 
                      forks: 9
                      forks_count: 9
                      stargazers_count: 80
                      watchers_count: 80
                      watchers: 80
                      size: 108
                      default_branch: master
                      open_issues: 0
                      open_issues_count: 0
                      is_template: true
                      license:
                        key: mit
                        name: MIT License
                        url: https://api.github.com/licenses/mit
                        spdx_id: MIT
                        node_id: MDc6TGljZW5zZW1pdA==
                        html_url: https://api.github.com/licenses/mit
                      topics:
                      - octocat
                      - atom
                      - electron
                      - api
                      has_issues: true
                      has_projects: true
                      has_wiki: true
                      has_pages: false
                      has_downloads: true
                      archived: false
                      disabled: false
                      visibility: public
                      pushed_at: '2011-01-26T19:06:43Z'
                      created_at: '2011-01-26T19:01:12Z'
                      updated_at: '2011-01-26T19:14:43Z'
                      permissions:
                        admin: false
                        push: false
                        pull: true
                      allow_rebase_merge: true
                      temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
                      allow_squash_merge: true
                      allow_auto_merge: false
                      delete_branch_on_merge: true
                      allow_merge_commit: true
                      subscribers_count: 42
                      network_count: 0
                    temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
                    allow_squash_merge: true
                    allow_auto_merge: false
                    delete_branch_on_merge: true
                    allow_merge_commit: true
                    allow_forking: true
                    subscribers_count: 42
                    network_count: 0
                    license:
                      key: mit
                      name: MIT License
                      spdx_id: MIT
                      url: https://api.github.com/licenses/mit
                      node_id: MDc6TGljZW5zZW1pdA==
                    organization:
                      login: octocat
                      id: 1
                      node_id: MDQ6VXNlcjE=
                      avatar_url: https://github.com/images/error/octocat_happy.gif
                      gravatar_id: ''
                      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: Organization
                      site_admin: false
                    parent:
                      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: ''
                        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
                        site_admin: false
                      private: false
                      html_url: https://github.com/octocat/Hello-World
                      description: This your first repo!
                      fork: false
                      url: https://api.github.com/repos/octocat/Hello-World
                      archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
                      assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
                      blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
                      branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
                      collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
                      comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
                      commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
                      compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
                      contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
                      contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
                      deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
                      downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
                      events_url: https://api.github.com/repos/octocat/Hello-World/events
                      forks_url: https://api.github.com/repos/octocat/Hello-World/forks
                      git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
                      git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
                      git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
                      git_url: git:github.com/octocat/Hello-World.git
                      issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
                      issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
                      issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
                      keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
                      labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
                      languages_url: https://api.github.com/repos/octocat/Hello-World/languages
                      merges_url: https://api.github.com/repos/octocat/Hello-World/merges
                      milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
                      notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
                      pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
                      releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
                      ssh_url: git@github.com:octocat/Hello-World.git
                      stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
                      statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
                      subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
                      subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
                      tags_url: https://api.github.com/repos/octocat/Hello-World/tags
                      teams_url: https://api.github.com/repos/octocat/Hello-World/teams
                      trees_url: https://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: https://api.github.com/repos/octocat/Hello-World/hooks
                      svn_url: https://svn.github.com/octocat/Hello-World
                      homepage: https://github.com
                      language: 
                      forks_count: 9
                      stargazers_count: 80
                      watchers_count: 80
                      size: 108
                      default_branch: master
                      open_issues_count: 0
                      is_template: true
                      topics:
                      - octocat
                      - atom
                      - electron
                      - api
                      has_issues: true
                      has_projects: true
                      has_wiki: true
                      has_pages: false
                      has_downloads: true
                      archived: false
                      disabled: false
                      visibility: public
                      pushed_at: '2011-01-26T19:06:43Z'
                      created_at: '2011-01-26T19:01:12Z'
                      updated_at: '2011-01-26T19:14:43Z'
                      permissions:
                        admin: false
                        push: false
                        pull: true
                      allow_rebase_merge: true
                      temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
                      allow_squash_merge: true
                      allow_auto_merge: false
                      delete_branch_on_merge: true
                      allow_merge_commit: true
                      subscribers_count: 42
                      network_count: 0
                      license:
                        key: mit
                        name: MIT License
                        url: https://api.github.com/licenses/mit
                        spdx_id: MIT
                        node_id: MDc6TGljZW5zZW1pdA==
                        html_url: https://api.github.com/licenses/mit
                      forks: 1
                      open_issues: 1
                      watchers: 1
                    source:
                      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: ''
                        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
                        site_admin: false
                      private: false
                      html_url: https://github.com/octocat/Hello-World
                      description: This your first repo!
                      fork: false
                      url: https://api.github.com/repos/octocat/Hello-World
                      archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
                      assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
                      blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
                      branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
                      collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
                      comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
                      commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
                      compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
                      contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
                      contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
                      deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
                      downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
                      events_url: https://api.github.com/repos/octocat/Hello-World/events
                      forks_url: https://api.github.com/repos/octocat/Hello-World/forks
                      git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
                      git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
                      git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
                      git_url: git:github.com/octocat/Hello-World.git
                      issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
                      issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
                      issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
                      keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
                      labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
                      languages_url: https://api.github.com/repos/octocat/Hello-World/languages
                      merges_url: https://api.github.com/repos/octocat/Hello-World/merges
                      milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
                      notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
                      pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
                      releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
                      ssh_url: git@github.com:octocat/Hello-World.git
                      stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
                      statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
                      subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
                      subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
                      tags_url: https://api.github.com/repos/octocat/Hello-World/tags
                      teams_url: https://api.github.com/repos/octocat/Hello-World/teams
                      trees_url: https://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: https://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
                      open_issues_count: 0
                      is_template: true
                      topics:
                      - octocat
                      - atom
                      - electron
                      - api
                      has_issues: true
                      has_projects: true
                      has_wiki: true
                      has_pages: false
                      has_downloads: true
                      archived: false
                      disabled: false
                      visibility: public
                      pushed_at: '2011-01-26T19:06:43Z'
                      created_at: '2011-01-26T19:01:12Z'
                      updated_at: '2011-01-26T19:14:43Z'
                      permissions:
                        admin: false
                        push: false
                        pull: true
                      allow_rebase_merge: true
                      temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
                      allow_squash_merge: true
                      allow_auto_merge: false
                      delete_branch_on_merge: true
                      allow_merge_commit: true
                      subscribers_count: 42
                      network_count: 0
                      license:
                        key: mit
                        name: MIT License
                        url: https://api.github.com/licenses/mit
                        spdx_id: MIT
                        node_id: MDc6TGljZW5zZW1pdA==
                        html_url: https://api.github.com/licenses/mit
                      forks: 1
                      open_issues: 1
                      watchers: 1
                      security_and_analysis:
                        advanced_security:
                          status: enabled
                        secret_scanning:
                          status: enabled
                        secret_scanning_push_protection:
                          status: disabled
        '403': *29
        '404': *7
        '301': *241
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: true
        category: repos
        subcategory: repos
    patch:
      summary: Update a repository
      description: "**Note**: To edit a repository's topics, use the [Replace all
        repository topics](https://docs.github.com/rest/repos/repos#replace-all-repository-topics)
        endpoint."
      tags:
      - repos
      operationId: repos/update
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/rest/repos/repos#update-a-repository
      parameters:
      - *229
      - *230
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The name of the repository.
                description:
                  type: string
                  description: A short description of the repository.
                homepage:
                  type: string
                  description: A URL with more information about the repository.
                private:
                  type: boolean
                  description: "Either `true` to make the repository private or `false`
                    to make it public. Default: `false`.  \n**Note**: You will get
                    a `422` error if the organization restricts [changing repository
                    visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories)
                    to organization owners and a non-owner tries to change the value
                    of private."
                  default: false
                visibility:
                  type: string
                  description: The visibility of the repository.
                  enum:
                  - public
                  - private
                security_and_analysis:
                  type: object
                  description: |-
                    Specify which security and analysis features to enable or disable for the repository.

                    To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."

                    For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:
                    `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.

                    You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.
                  nullable: true
                  properties:
                    advanced_security:
                      type: object
                      description: Use the `status` property to enable or disable
                        GitHub Advanced Security for this repository. For more information,
                        see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."
                      properties:
                        status:
                          type: string
                          description: Can be `enabled` or `disabled`.
                    secret_scanning:
                      type: object
                      description: Use the `status` property to enable or disable
                        secret scanning for this repository. For more information,
                        see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."
                      properties:
                        status:
                          type: string
                          description: Can be `enabled` or `disabled`.
                    secret_scanning_push_protection:
                      type: object
                      description: Use the `status` property to enable or disable
                        secret scanning push protection for this repository. For more
                        information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."
                      properties:
                        status:
                          type: string
                          description: Can be `enabled` or `disabled`.
                has_issues:
                  type: boolean
                  description: Either `true` to enable issues for this repository
                    or `false` to disable them.
                  default: true
                has_projects:
                  type: boolean
                  description: Either `true` to enable projects for this repository
                    or `false` to disable them. **Note:** If you're creating a repository
                    in an organization that has disabled repository projects, the
                    default is `false`, and if you pass `true`, the API returns an
                    error.
                  default: true
                has_wiki:
                  type: boolean
                  description: Either `true` to enable the wiki for this repository
                    or `false` to disable it.
                  default: true
                is_template:
                  type: boolean
                  description: Either `true` to make this repo available as a template
                    repository or `false` to prevent it.
                  default: false
                default_branch:
                  type: string
                  description: Updates the default branch for this repository.
                allow_squash_merge:
                  type: boolean
                  description: Either `true` to allow squash-merging pull requests,
                    or `false` to prevent squash-merging.
                  default: true
                allow_merge_commit:
                  type: boolean
                  description: Either `true` to allow merging pull requests with a
                    merge commit, or `false` to prevent merging pull requests with
                    merge commits.
                  default: true
                allow_rebase_merge:
                  type: boolean
                  description: Either `true` to allow rebase-merging pull requests,
                    or `false` to prevent rebase-merging.
                  default: true
                allow_auto_merge:
                  type: boolean
                  description: Either `true` to allow auto-merge on pull requests,
                    or `false` to disallow auto-merge.
                  default: false
                delete_branch_on_merge:
                  type: boolean
                  description: Either `true` to allow automatically deleting head
                    branches when pull requests are merged, or `false` to prevent
                    automatic deletion.
                  default: false
                allow_update_branch:
                  type: boolean
                  description: Either `true` to always allow a pull request head branch
                    that is behind its base branch to be updated even if it is not
                    required to be up to date before merging, or false otherwise.
                  default: false
                use_squash_pr_title_as_default:
                  type: boolean
                  description: Either `true` to allow squash-merge commits to use
                    pull request title, or `false` to use commit message. **This property
                    has been deprecated. Please use `squash_merge_commit_title` instead.
                  default: false
                  deprecated: true
                squash_merge_commit_title:
                  type: string
                  enum:
                  - PR_TITLE
                  - COMMIT_OR_PR_TITLE
                  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).
                squash_merge_commit_message:
                  type: string
                  enum:
                  - PR_BODY
                  - COMMIT_MESSAGES
                  - BLANK
                  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.
                merge_commit_title:
                  type: string
                  enum:
                  - PR_TITLE
                  - MERGE_MESSAGE
                  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).
                merge_commit_message:
                  type: string
                  enum:
                  - PR_BODY
                  - PR_TITLE
                  - BLANK
                  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.
                archived:
                  type: boolean
                  description: Whether to archive this repository. `false` will unarchive
                    a previously archived repository.
                  default: false
                allow_forking:
                  type: boolean
                  description: Either `true` to allow private forks, or `false` to
                    prevent private forks.
                  default: false
                web_commit_signoff_required:
                  type: boolean
                  description: Either `true` to require contributors to sign off on
                    web-based commits, or `false` to not require contributors to sign
                    off on web-based commits.
                  default: false
            examples:
              default:
                value:
                  name: Hello-World
                  description: This is your first repository
                  homepage: https://github.com
                  private: true
                  has_issues: true
                  has_projects: true
                  has_wiki: true
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema: *240
              examples:
                default: *242
        '307': &243
          description: Temporary Redirect
          content:
            application/json:
              schema: *3
        '403': *29
        '422': *16
        '404': *7
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: true
        category: repos
        subcategory: repos
    delete:
      summary: Delete a repository
      description: |-
        Deleting a repository requires admin access.

        If an organization owner has configured the organization to prevent members from deleting organization-owned
        repositories, you will get a `403 Forbidden` response.

        OAuth app tokens and personal access tokens (classic) need the `delete_repo` scope to use this endpoint.
      tags:
      - repos
      operationId: repos/delete
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/rest/repos/repos#delete-a-repository
      parameters:
      - *229
      - *230
      responses:
        '204':
          description: Response
        '403':
          description: 'If an organization owner has configured the organization to
            prevent members from deleting organization-owned repositories, a member
            will get this response:'
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  documentation_url:
                    type: string
              examples:
                default:
                  value:
                    message: Organization members cannot delete repositories.
                    documentation_url: https://docs.github.com/rest/repos/repos#delete-a-repository
        '307': *243
        '404': *7
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: true
        category: repos
        subcategory: repos
h1alexbel commented 3 months ago

@l3r8yJ could you take this one?