gitlab - Gitlab webhook 有效负载 - 检测服务台
问题描述
我开始使用 Gitlab,我有一些需要使用 webhook 构建的自动化部分。这些自动化仅适用于进入服务台区域的问题。
当我查看 JSON 有效负载机密问题和机密评论时,哪些元素表明这是否与服务台问题/评论有关?
非服务台问题也可以标记为机密,因此这似乎不是将活动识别为与服务台问题相关的正确方法。
解决方案
如果您正在寻找有关在 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
用户。
推荐阅读
- scheme - 在过程中定义一个变量
- python - 在特定路径上写入文件的问题
- rust - 不能在 `cargo` 中使用`-Z macro-backtrace` 不稳定选项
- go - 文件上传如何获取http.Dir路径
- javascript - 如何使用 JS 删除下拉列表中的选定值副本?
- azure - 在 webjob azure 中设置路径
- jekyll - 使用液体按最新日期对帖子进行排序(latest(posted_date,updated_date))
- javascript - 合并来自多个页面的 jQuery 对象
- java - Java ZipEntry 到字节数组
- r - shinyR 应用程序中的 Ggplot 大小