Git

获取提交。Get commit.

根据提交哈希或分支名称获取单次提交的详细信息,包括提交消息、作者、提交者、父提交及变更文件统计等。 Get detailed information of a single commit by commit hash or branch name, including commit message, author, committer, parent commits, and changed file statistics. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r

get/{repo}/-/git/commits/{ref}

Request

  • Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
  • URL: https://api.cnb.cool/{repo}/-/git/commits/{ref}
  • Auth: API key in header Authorization

Path parameters

repostring required

不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.

refstring required

提交的哈希值或分支名称。Commit hash or branch name.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.