Discord Notifications 服务

Discord Notifications 服务将事件通知从极狐GitLab 发送到为其创建 Webhook 的 channel。

要将极狐GitLab 事件通知发送到 Discord channel,在 Discord 中创建 Webhook 并在极狐GitLab 中进行配置。

创建 Webhook

  1. 打开您想要接收极狐GitLab 事件通知的 Discord channel。
  2. 从菜单中,选择 Edit channel
  3. 选择 集成
  4. 如果没有现有的 Webhook,请选择 创建 Webhook。否则,请选择 查看 Webhook 然后选择 新建 Webhook
  5. 输入要发布消息的机器人的名称。
  6. 可选。编辑头像。
  7. 复制 WEBHOOK URL 字段中的 URL。
  8. 选择 保存

在极狐GitLab 中配置创建的 Webhook

使用在 Discord channel 中创建的 Webhook URL,您可以在极狐GitLab 中设置 Discord Notifications 服务。

  1. 在左侧边栏中,选择 搜索或转到 并找到您的项目。
  2. 在左侧边栏中,选择 设置 > 集成
  3. 选择 Discord Notifications
  4. 确保打开了 启用 切换开关。
  5. 选中与您要向 Discord 发送通知的极狐GitLab 事件对应的复选框。
  6. 粘贴您从创建 Discord Webhook 步骤中复制的 Webhook URL。
  7. 配置其余选项并选择 保存更改 按钮。

您创建 Webhook 的 Discord channel 现在会收到已配置的极狐GitLab 事件的通知。