首页 > 解决方案 > Gitlab webhook 有效负载 - 检测服务台

问题描述

我开始使用 Gitlab,我有一些需要使用 webhook 构建的自动化部分。这些自动化仅适用于进入服务台区域的问题。

当我查看 JSON 有效负载机密问题和机密评论时,哪些元素表明这是否与服务台问题/评论有关?

非服务台问题也可以标记为机密,因此这似乎不是将活动识别为与服务台问题相关的正确方法。

标签: gitlab

解决方案


如果您正在寻找有关在 Service Desk 中创建了新问题的一些信息,那么您可以寻找GitLab Support Bot作为作者的信息,基本上:

"author":{
  "id":1257257, ## double check if the ID number is the same for your instance
  "name":"GitLab Support Bot",
  "username":"support-bot",
  "state":"active",
  "avatar_url":"https://secure.gravatar.com/avatar/f21cf9717c13c6f591e183c2b2484d9a?s=80\u0026d=identicon",
  "web_url":"https://gitlab.example.com/support-bot"}

所有外部评论(服务台通过电子邮件获得的回复)也将显示为support-bot用户。


推荐阅读