Skip to main content

Module commit

Module commit 

Source
Expand description

GitLab Commit 提供者实现。

通过 glab api CLI 命令实现 CommitProvider trait, 支持 Commit 查看、Diff/Patch 获取及评论功能。

GitLab API 路径与 GitHub 不同:

  • projects/:id/repository/commits/:sha — 查看提交
  • projects/:id/repository/commits/:sha/diff — 获取 diff
  • projects/:id/repository/commits/:sha + Accept header — 获取 patch
  • projects/:id/repository/commits/:sha/comments — 评论

Structs§

GitLabCommitProvider
GitLab Commit 提供者,通过 glab api 查看提交信息。