【问题标题】:Gitlab Api Commits Behind/Ahead MasterGitlab Api 在 Master 后面/前面提交
【发布时间】:2020-11-03 12:33:09
【问题描述】:

在 Gitlab 网页上,您可以检查一个分支在主分支之后或之前有多少次提交。 我的问题是是否可以使用“gitlab API”获取有关此信息?我检查了文档,但不幸的是找不到任何东西。

【问题讨论】:

标签: python api gitlab gitlab-api python-gitlab


【解决方案1】:

在 MR API:https://docs.gitlab.com/ee/api/merge_requests.html#get-single-mr 中查找 include_diverged_commits_count: "true"(默认为 false)。

唯一令人沮丧的是(恕我直言)这似乎只能通过 MR API 获得,因此您需要先创建一个 MR。

【讨论】:

    猜你喜欢
    • 2021-10-13
    • 2013-10-10
    • 2021-05-07
    • 2022-07-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-25
    相关资源
    最近更新 更多