Type | Description |
---|---|
issues | The number of open and closed issues. |
hooks | The number of active and inactive hooks. |
milestones | The number of open and closed milestones. |
orgs | The number of organizations, teams, team members, and disabled organizations. |
comments | The number of comments on issues, pull requests, commits, and gists. |
pages | The number of GitHub Pages sites. |
users | The number of suspended and admin users. |
gists | The number of private and public gists. |
pulls | The number of merged, mergeable, and unmergeable pull requests. |
repos | The number of organization-owned repositories, root repositories, forks, pushed commits, and wikis. |
all | All of the statistics listed above. |
curl --location --request GET 'https://api.github.com/enterprise/stats/'
{
"comments": {
"total_commit_comments": 0,
"total_gist_comments": 0,
"total_issue_comments": 0,
"total_pull_request_comments": 0
},
"gists": {
"private_gists": 0,
"public_gists": 0,
"total_gists": 0
},
"hooks": {
"active_hooks": 0,
"inactive_hooks": 0,
"total_hooks": 0
},
"issues": {
"closed_issues": 0,
"open_issues": 0,
"total_issues": 0
},
"milestones": {
"closed_milestones": 0,
"open_milestones": 0,
"total_milestones": 0
},
"orgs": {
"disabled_orgs": 0,
"total_orgs": 0,
"total_team_members": 0,
"total_teams": 0
},
"pages": {
"total_pages": 0
},
"pulls": {
"mergeable_pulls": 0,
"merged_pulls": 0,
"total_pulls": 0,
"unmergeable_pulls": 0
},
"repos": {
"fork_repos": 0,
"org_repos": 0,
"root_repos": 0,
"total_pushes": 0,
"total_repos": 0,
"total_wikis": 0
},
"users": {
"admin_users": 0,
"suspended_users": 0,
"total_users": 0
}
}
Authorization: Bearer ********************
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通