gpt4 book ai didi

github - 将 slack 与 github 集成以获取有关特定分支发生推送的通知

转载 作者:行者123 更新时间:2023-12-04 17:31:21 25 4
gpt4 key购买 nike

我正在寻找一种方法,当在 github 存储库的特定分支中发生推送时,我可以如何将消息发送到松弛 channel 。

我试着用下面提到的步骤来做 -

1. Installed github app in slack.
2. Added github to slack channel using /github.

之后,当我尝试连接到存储库时,github 要求进行身份验证。当我尝试这样做时,它会将我导航到 github.com 而不是公司的自定义 github 域。

请帮帮我。

最佳答案

您可以将 .github/workflows 添加到您的存储库中为了使用GitHub Action (这也是 available for GitHub Enterprise ,而不仅仅是 github.com)

例如:

An action which wraps the Slack chat.postMessage API method for posting to channels, private groups, and DMs.

This action sends messages using Slack bot tokens, which have two main advantages compared to user tokens and incoming webhooks:

  1. Bots can't be disabled inadvertently when a Slack user is disabled or removed. Slack has written about this in a recent announcement, and
  2. Bots offer a powerful range of capabilities that can be leveraged to perform more functions.

关于github - 将 slack 与 github 集成以获取有关特定分支发生推送的通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59367438/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com