用于个人访问令牌的 REST API 端点
使用 REST API 管理细粒度个人访问令牌。
注意
细粒度个人访问令牌目前处于公开预览阶段,可能会发生更改。要提供反馈,请参阅反馈讨论。
列出使用细粒度个人访问令牌访问组织资源的请求
列出组织成员使用细粒度个人访问令牌访问组织资源的请求。
只有 GitHub Apps 可以使用此端点。
用于“列出使用细粒度个人访问令牌访问组织资源的请求”的细粒度访问令牌
此端点可与以下细粒度令牌类型配合使用:
细粒度令牌必须具有以下权限集
- “个人访问令牌请求”组织权限(读取)
用于“列出使用细粒度个人访问令牌访问组织资源的请求”的参数
名称、类型、描述 |
---|
accept 字符串建议设置为 |
名称、类型、描述 |
---|
org 字符串 必填组织名称。名称不区分大小写。 |
名称、类型、描述 |
---|
per_page 整数每页结果数(最大 100)。有关更多信息,请参阅“在 REST API 中使用分页”。 默认值: |
page 整数要获取的结果的页码。有关更多信息,请参阅“在 REST API 中使用分页”。 默认值: |
sort 字符串用于对结果进行排序的属性。 默认值: 值: |
direction 字符串对结果进行排序的方向。 默认值: 可以是以下之一: |
owner 数组用于筛选结果的所有者用户名列表。 |
repository 字符串用于筛选结果的仓库名称。 |
permission 字符串用于筛选结果的权限。 |
last_used_before 字符串仅显示在给定时间之前使用的细粒度个人访问令牌。这是一个 ISO 8601 格式的时间戳: |
last_used_after 字符串仅显示在给定时间之后使用的细粒度个人访问令牌。这是一个 ISO 8601 格式的时间戳: |
用于“列出使用细粒度个人访问令牌访问组织资源的请求”的 HTTP 响应状态代码
状态代码 | 描述 |
---|---|
200 | OK |
403 | 禁止 |
404 | 资源未找到 |
422 | 验证失败或端点已被滥用。 |
500 | 内部错误 |
用于“列出使用细粒度个人访问令牌访问组织资源的请求”的代码示例
请求示例
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/personal-access-token-requests
响应
状态:200
[ { "id": 25381, "reason": "我需要访问 GitHub API", "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 }, "repository_selection": "all", "repositories_url": "https://api.github.com/organizations/652551/personal-access-token-requests/25381/repositories", "permissions": { "organization": { "members": "read" }, "repository": { "metadata": "read" } }, "created_at": "2023-05-16T08:47:09.000-07:00", "token_id": 98716, "token_name": "Some Token", "token_expired": false, "token_expires_at": "2023-11-16T08:47:09.000-07:00", "token_last_used_at": null } ]
审查使用细粒度个人访问令牌访问组织资源的请求
批准或拒绝通过细粒度个人访问令牌访问组织资源的多个待处理请求。
只有 GitHub Apps 可以使用此端点。
用于“审查使用细粒度个人访问令牌访问组织资源的请求”的细粒度访问令牌
此端点可与以下细粒度令牌类型配合使用:
细粒度令牌必须具有以下权限集
- “个人访问令牌请求”组织权限(写入)
用于“审查使用细粒度个人访问令牌访问组织资源的请求”的参数
名称、类型、描述 |
---|
accept 字符串建议设置为 |
名称、类型、描述 |
---|
org 字符串 必填组织名称。名称不区分大小写。 |
名称、类型、描述 |
---|
pat_request_ids 整数数组通过细粒度个人访问令牌访问请求的唯一标识符。必须由 1 到 100 个 |
action 字符串 必填要应用于请求的操作。 可以是以下之一: |
reason 字符串或空值批准或拒绝请求的原因。最多 1024 个字符。 |
用于“审查使用细粒度个人访问令牌访问组织资源的请求”的 HTTP 响应状态代码
状态代码 | 描述 |
---|---|
202 | 已接受 |
403 | 禁止 |
404 | 资源未找到 |
422 | 验证失败或端点已被滥用。 |
500 | 内部错误 |
用于“审查使用细粒度个人访问令牌访问组织资源的请求”的代码示例
请求示例
curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/personal-access-token-requests \ -d '{"pat_request_ids":[42,73],"action":"deny","reason":"访问权限过宽。"}'
已接受
审查使用细粒度个人访问令牌访问组织资源的请求
批准或拒绝通过细粒度个人访问令牌访问组织资源的待处理请求。
只有 GitHub Apps 可以使用此端点。
用于“审查使用细粒度个人访问令牌访问组织资源的请求”的细粒度访问令牌
此端点可与以下细粒度令牌类型配合使用:
细粒度令牌必须具有以下权限集
- “个人访问令牌请求”组织权限(写入)
用于“审查使用细粒度个人访问令牌访问组织资源的请求”的参数
名称、类型、描述 |
---|
accept 字符串建议设置为 |
名称、类型、描述 |
---|
org 字符串 必填组织名称。名称不区分大小写。 |
pat_request_id 整数 必填通过细粒度个人访问令牌访问请求的唯一标识符。 |
名称、类型、描述 |
---|
action 字符串 必填要应用于请求的操作。 可以是以下之一: |
reason 字符串或空值批准或拒绝请求的原因。最多 1024 个字符。 |
用于“审查使用细粒度个人访问令牌访问组织资源的请求”的 HTTP 响应状态代码
状态代码 | 描述 |
---|---|
204 | 返回不包含内容的标头。 |
403 | 禁止 |
404 | 资源未找到 |
422 | 验证失败或端点已被滥用。 |
500 | 内部错误 |
用于“审查使用细粒度个人访问令牌访问组织资源的请求”的代码示例
请求示例
curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/personal-access-token-requests/PAT_REQUEST_ID \ -d '{"action":"deny","reason":"此请求被拒绝,因为访问权限过宽。"}'
返回不包含内容的标头。
状态:204
列出细粒度个人访问令牌请求访问的存储库
列出细粒度个人访问令牌请求正在请求访问的存储库。
只有 GitHub Apps 可以使用此端点。
“列出细粒度个人访问令牌请求访问的存储库”的细粒度访问令牌
此端点可与以下细粒度令牌类型配合使用:
细粒度令牌必须具有以下权限集
- “个人访问令牌请求”组织权限(读取)
“列出细粒度个人访问令牌请求访问的存储库”的参数
名称、类型、描述 |
---|
accept 字符串建议设置为 |
名称、类型、描述 |
---|
org 字符串 必填组织名称。名称不区分大小写。 |
pat_request_id 整数 必填通过细粒度个人访问令牌访问请求的唯一标识符。 |
名称、类型、描述 |
---|
per_page 整数每页结果数(最大 100)。有关更多信息,请参阅“在 REST API 中使用分页”。 默认值: |
page 整数要获取的结果的页码。有关更多信息,请参阅“在 REST API 中使用分页”。 默认值: |
“列出细粒度个人访问令牌请求访问的存储库”的 HTTP 响应状态代码
状态代码 | 描述 |
---|---|
200 | OK |
403 | 禁止 |
404 | 资源未找到 |
500 | 内部错误 |
“列出细粒度个人访问令牌请求访问的存储库”的代码示例
请求示例
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/personal-access-token-requests/PAT_REQUEST_ID/repositories
响应
状态:200
[ { "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": "[email protected]: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": 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": { "admin": false, "push": false, "pull": true }, "security_and_analysis": { "advanced_security": { "status": "enabled" }, "secret_scanning": { "status": "enabled" }, "secret_scanning_push_protection": { "status": "disabled" }, "secret_scanning_non_provider_patterns": { "status": "disabled" } } } ]
列出具有组织资源访问权限的细粒度个人访问令牌
列出组织成员拥有的、已获批准的、可以访问组织资源的细粒度个人访问令牌。
只有 GitHub Apps 可以使用此端点。
“列出具有组织资源访问权限的细粒度个人访问令牌”的细粒度访问令牌
此端点可与以下细粒度令牌类型配合使用:
细粒度令牌必须具有以下权限集
- “个人访问令牌”组织权限(读取)
“列出具有组织资源访问权限的细粒度个人访问令牌”的参数
名称、类型、描述 |
---|
accept 字符串建议设置为 |
名称、类型、描述 |
---|
org 字符串 必填组织名称。名称不区分大小写。 |
名称、类型、描述 |
---|
per_page 整数每页结果数(最大 100)。有关更多信息,请参阅“在 REST API 中使用分页”。 默认值: |
page 整数要获取的结果的页码。有关更多信息,请参阅“在 REST API 中使用分页”。 默认值: |
sort 字符串用于对结果进行排序的属性。 默认值: 值: |
direction 字符串对结果进行排序的方向。 默认值: 可以是以下之一: |
owner 数组用于筛选结果的所有者用户名列表。 |
repository 字符串用于筛选结果的仓库名称。 |
permission 字符串用于筛选结果的权限。 |
last_used_before 字符串仅显示在给定时间之前使用的细粒度个人访问令牌。这是一个 ISO 8601 格式的时间戳: |
last_used_after 字符串仅显示在给定时间之后使用的细粒度个人访问令牌。这是一个 ISO 8601 格式的时间戳: |
“列出具有组织资源访问权限的细粒度个人访问令牌”的 HTTP 响应状态代码
状态代码 | 描述 |
---|---|
200 | OK |
403 | 禁止 |
404 | 资源未找到 |
422 | 验证失败或端点已被滥用。 |
500 | 内部错误 |
“列出具有组织资源访问权限的细粒度个人访问令牌”的代码示例
请求示例
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/personal-access-tokens
响应
状态:200
[ { "id": 25381, "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 }, "repository_selection": "all", "repositories_url": "https://api.github.com/organizations/652551/personal-access-tokens/25381/repositories", "permissions": { "organization": { "members": "read" }, "repository": { "metadata": "read" } }, "access_granted_at": "2023-05-16T08:47:09.000-07:00", "token_id": 98716, "token_name": "Some Token", "token_expired": false, "token_expires_at": "2023-11-16T08:47:09.000-07:00", "token_last_used_at": null } ]
更新通过细粒度个人访问令牌访问组织资源的权限
更新组织成员通过细粒度个人访问令牌访问组织资源的权限。仅限于撤销令牌的现有访问权限。
只有 GitHub Apps 可以使用此端点。
“更新通过细粒度个人访问令牌访问组织资源的权限”的细粒度访问令牌
此端点可与以下细粒度令牌类型配合使用:
细粒度令牌必须具有以下权限集
- “个人访问令牌”组织权限(写入)
“更新通过细粒度个人访问令牌访问组织资源的权限”的参数
名称、类型、描述 |
---|
accept 字符串建议设置为 |
名称、类型、描述 |
---|
org 字符串 必填组织名称。名称不区分大小写。 |
名称、类型、描述 |
---|
action 字符串 必填应用于细粒度个人访问令牌的操作。 值: |
pat_ids 整数数组 必需细粒度个人访问令牌的 ID。 |
“更新通过细粒度个人访问令牌访问组织资源的权限”的 HTTP 响应状态代码
状态代码 | 描述 |
---|---|
202 | 已接受 |
403 | 禁止 |
404 | 资源未找到 |
422 | 验证失败或端点已被滥用。 |
500 | 内部错误 |
“更新通过细粒度个人访问令牌访问组织资源的权限”的代码示例
请求示例
curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/personal-access-tokens \ -d '{"action":"revoke","pat_ids":[1296269,1296280]}'
已接受
更新细粒度个人访问令牌对组织资源的访问权限
更新组织成员通过细粒度个人访问令牌访问组织资源的权限。仅限于撤销令牌的现有访问权限。仅限于撤销令牌的现有访问权限。
只有 GitHub Apps 可以使用此端点。
“更新细粒度个人访问令牌对组织资源的访问权限”的细粒度访问令牌
此端点可与以下细粒度令牌类型配合使用:
细粒度令牌必须具有以下权限集
- “个人访问令牌”组织权限(写入)
“更新细粒度个人访问令牌对组织资源的访问权限”的参数
名称、类型、描述 |
---|
accept 字符串建议设置为 |
名称、类型、描述 |
---|
org 字符串 必填组织名称。名称不区分大小写。 |
pat_id 整数 必需细粒度个人访问令牌的唯一标识符。 |
名称、类型、描述 |
---|
action 字符串 必填应用于细粒度个人访问令牌的操作。 值: |
“更新细粒度个人访问令牌对组织资源的访问权限”的 HTTP 响应状态代码
状态代码 | 描述 |
---|---|
204 | 返回不包含内容的标头。 |
403 | 禁止 |
404 | 资源未找到 |
422 | 验证失败或端点已被滥用。 |
500 | 内部错误 |
“更新细粒度个人访问令牌对组织资源的访问权限”的代码示例
请求示例
curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/personal-access-tokens/PAT_ID \ -d '{"action":"revoke"}'
返回不包含内容的标头。
状态:204
列出细粒度个人访问令牌具有访问权限的存储库
列出细粒度个人访问令牌具有访问权限的存储库。
只有 GitHub Apps 可以使用此端点。
“列出细粒度个人访问令牌具有访问权限的存储库”的细粒度访问令牌
此端点可与以下细粒度令牌类型配合使用:
细粒度令牌必须具有以下权限集
- “个人访问令牌”组织权限(读取)
“列出细粒度个人访问令牌具有访问权限的存储库”的参数
名称、类型、描述 |
---|
accept 字符串建议设置为 |
名称、类型、描述 |
---|
org 字符串 必填组织名称。名称不区分大小写。 |
pat_id 整数 必需细粒度个人访问令牌的唯一标识符。 |
名称、类型、描述 |
---|
per_page 整数每页结果数(最大 100)。有关更多信息,请参阅“在 REST API 中使用分页”。 默认值: |
page 整数要获取的结果的页码。有关更多信息,请参阅“在 REST API 中使用分页”。 默认值: |
“列出细粒度个人访问令牌具有访问权限的存储库”的 HTTP 响应状态代码
状态代码 | 描述 |
---|---|
200 | OK |
403 | 禁止 |
404 | 资源未找到 |
500 | 内部错误 |
“列出细粒度个人访问令牌具有访问权限的存储库”的代码示例
请求示例
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/personal-access-tokens/PAT_ID/repositories
响应
状态:200
[ { "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": "[email protected]: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": 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": { "admin": false, "push": false, "pull": true }, "security_and_analysis": { "advanced_security": { "status": "enabled" }, "secret_scanning": { "status": "enabled" }, "secret_scanning_push_protection": { "status": "disabled" }, "secret_scanning_non_provider_patterns": { "status": "disabled" } } } ]