V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
andj4cn
V2EX  ›  GitLab

GitLab 如何通过 WebHook 获取单次 Push 的所有 Commit (超过 20 条)?

  •  
  •   andj4cn · 2019-11-18 14:38:26 +08:00 · 3702 次点击
    这是一个创建于 1614 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,需要对所有的代码 commit 进行规范审查,但是 WebHook 有限制:

    Note: When more than 20 commits are pushed at once, the commits web hook attribute will only contain the first 20 for performance reasons. Loading detailed commit data is expensive. Note that despite only 20 commits being present in the commits attribute, the total_commits_count attribute will contain the actual total.

    有用过这个接口的老哥吗?讨教一下经验,怎么处理这种情况。

    4 条回复    2020-01-02 01:47:05 +08:00
    phy25
        1
    phy25  
       2019-11-18 14:45:15 +08:00 via Android
    andj4cn
        2
    andj4cn  
    OP
       2019-11-18 14:54:48 +08:00
    @phy25 我看了下他们的讨论,好像没有给出具体的解决方案。。只是说到底该不该因为性能问题做出限制
    andj4cn
        3
    andj4cn  
    OP
       2019-11-18 14:55:46 +08:00
    @phy25 我想知道有没有其他的解决办法,WebHook 这一条路应该是走不通了
    phy25
        4
    phy25  
       2020-01-02 01:47:05 +08:00 via Android
    @andj4cn #2 "could share a bit more about how you're using the web hook? Improving the API might be a simper solution." 建议直接去那边回复。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1002 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:59 · PVG 02:59 · LAX 11:59 · JFK 14:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.