Gitlab-system-hooks 悠悠 2021-12-22 02:39 256阅读 0赞 当创建或者删除,用户或者项目时,可能想收到一个通知。Gitlab支持这种类型的system hooks. 下面事件可以触发一个system webhook调用。 * Project created * Project destroyed * New team member * The team member is removed * A user is created * The user is removed ### 执行步骤: ### #### 1. 使用管理员登陆gitlab服务器。 #### #### 2. 点击【Admin area】。 #### [![image][]][image 1] #### 3. 作为测试 ,此处我们使用RequstBin进行服务调用。 点击【Create a RequestBin】 #### [![image][image 2]][image_image 2] #### 4. 把创建的RequestBin URL复制到system hook URL中。进行测试 。 #### [![image][image 3]][image_image 3] #### 5. 点击【Test】,在RequestBin服务器中查看,如下图所示: #### [![image][image 4]][image_image 4] 转载于:https://www.cnblogs.com/zangxueyuan/p/9232358.html [image]: /images/20211220/ee03c0e0f92f47bfa3eabae27818095c.png [image 1]: https://images2018.cnblogs.com/blog/1416119/201806/1416119-20180627093903169-1972161063.png [image 2]: https://images2018.cnblogs.com/blog/1416119/201806/1416119-20180627093905767-1336105319.png [image_image 2]: /images/20211220/2b0bc24b9c804a96b4984b7423943e1a.png [image 3]: https://images2018.cnblogs.com/blog/1416119/201806/1416119-20180627093907033-1078468713.png [image_image 3]: /images/20211220/ea7aa9aef7fd42c5b92db9e21ae192e8.png [image 4]: https://images2018.cnblogs.com/blog/1416119/201806/1416119-20180627093907864-1410687906.png [image_image 4]: /images/20211220/73d0edca152e4896a87f135d839b32d3.png
还没有评论,来说两句吧...