我想在gitlab api中获取一个文件的提交或最后一次提交,如下所示:
GET /projects/:id/repository/commits?path=fileName
Gitlab支持与否?
有一个补丁可以实现这个功能:
https://gitlab.com/gitlab-org/gitlab-ce/issues/18898
不幸的是,它还没有被合并:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4814
编辑:现已合并,预计将于 8.14.0(2016-11-22)登陆:https://gitlab.com/gitlab-org/gitlab-ce/commit/146d4348ca6812e26729de40a831f4ae8c27fde6