我如何创建一个GitLab webhook? [英] How do I create a GitLab webhook?

查看:331
本文介绍了我如何创建一个GitLab webhook?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过GitLab能够通过web钩子将消息发送到其他服务器,但是我找不到在哪里创建一个。



有人能指出我的方向吗? 解决方案

我在官方文档中找到的所有答案以及用于查找 Web钩子的堆栈溢出不正确。 管理区>钩子页面不包含 web 钩子。它包含 system 钩子,当您创建/删除项目和用户以及类似的东西时会触发。这不是你想要的。



要找到您的web钩子,请转至特定项目>设置> Web钩子(在GitLab 6.1.0的侧边栏上)页面。这些将在有关项目的收到后解雇。您可以使用像 RequestBin 这样的服务来查看有效负载看起来是什么样的,并确保您为了调试的目的而正确地解决这些问题。


I've read that GitLab is capable of sending messages to other servers via "web hooks" but I can't find where one would create one.

Can someone point me in the right direction?

解决方案

All the answers I've found in official documentation and on Stack Overflow for finding web hooks are incorrect. The admin area > hooks page does NOT contain web hooks. It contains system hooks, which fire when you create/delete projects and users and things like that. This is not what you want.

To find your web hooks, go to the specific project > settings > web hooks (on sidebar in GitLab 6.1.0) page. These will fire on post-receive for the project in question. You can use a service like RequestBin to see what the payload looks like and to ensure you're firing these off correctly for debugging purposes.

这篇关于我如何创建一个GitLab webhook?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆