← 返回首页

GitHub

GET /github/:owner/:repo/releases/latest

获取指定仓库的最新发布版本信息。

可在请求头中附带 Authorization: Bearer <token> 以访问受限资源,服务会将凭证透传给 GitHub API。

参数

名称位置必填说明
owner path 仓库所有者用户名
repo path 仓库名称

示例

curl {{ORIGIN}}/github/cloudflare/workers-sdk/releases/latest

GET /github/:owner/:repo/releases

列出仓库的全部发布记录。

可在请求头中附带 Authorization: Bearer <token> 以访问受限资源,服务会将凭证透传给 GitHub API。

参数

名称位置必填说明
owner path 仓库所有者用户名
repo path 仓库名称

示例

curl {{ORIGIN}}/github/cloudflare/workers-sdk/releases

GET /github/:owner/:repo/tags

列出仓库的全部标签。

可在请求头中附带 Authorization: Bearer <token> 以访问受限资源,服务会将凭证透传给 GitHub API。

参数

名称位置必填说明
owner path 仓库所有者用户名
repo path 仓库名称

示例

curl {{ORIGIN}}/github/cloudflare/workers-sdk/tags

GET /github/users/:username

查询 GitHub 用户的公开信息。

可在请求头中附带 Authorization: Bearer <token> 以访问受限资源,服务会将凭证透传给 GitHub API。

参数

名称位置必填说明
username path GitHub 用户名

示例

curl {{ORIGIN}}/github/users/torvalds

GET /github/orgs/:orgname

查询 GitHub 组织的公开信息。

可在请求头中附带 Authorization: Bearer <token> 以访问受限资源,服务会将凭证透传给 GitHub API。

参数

名称位置必填说明
orgname path GitHub 组织名

示例

curl {{ORIGIN}}/github/orgs/cloudflare