【问题标题】:Github Scheduled Reminders - Some Slack Mentions Aren't LinkedGithub 预定提醒 - 一些 Slack 提及没有关联
【发布时间】:2021-03-06 01:28:58
【问题描述】:

我们已经为我们在 GH 的一个团队设置了预定提醒。当提醒在 Slack 中显示时,一些用户的帐户没有正确链接。对于这些用户,它只显示他们的 GH 用户名未链接。其他所有人(可能是我们的用户中的 80% 或更多)都有一个适当的 @ 提及而不是他们的 GH 用户名。我查看了两个系统中未链接用户的个人资料,无法确定明确的根本原因。

有没有其他人看到这个,任何可能的解决方案?

编辑:情节变厚了。我看到 SAME REMINDER 中的 SAME USER 都被@正确/链接和不正确/未链接。受影响的用户有一个模式:

  • 在打印 PR #、Title 和 Owner 的行上,受影响用户的 github 用户名显示为未链接。
  • 在打印过时天数/旧天数/等待列表的行中,一些受影响的用户将被正确@提及,而有些则不会。

让人抓狂。

【问题讨论】:

  • 你是如何获得松弛@提及的?它们来自 github 提交消息吗?您的所有用户是否都在其个人资料的 github 字段中设置了他们的 github 用户名,或者您如何将用户帐户从 github 映射到 slack?
  • @JosephIshak 他们通过 Github 中配置的计划提醒进入。请参阅:docs.github.com/en/github/… 我查看了两个系统中的配置文件,并没有看到对于那些有效的提及与那些无效的提及的“映射”模式一致。
  • 他们的用户名中有特殊字符吗?像@

标签: github slack


【解决方案1】:

对于这不起作用的 slack 用户,您是否尝试过让他们使用 /github unsubscribe 后跟 /github subscribe 命令取消订阅 github 以让 github 刷新他们的 slack 帐户信息?

我不确定您正在使用的应用程序是一个单独的应用程序,还是它是 github 的一部分以松弛集成。如果是,则说明在执行此步骤之前,您的帐户是如何关联的。

我在这里看到了这篇文章:https://github.com/integrations/slack#configuration

Subscribing and Unsubscribing
At this point, your Slack and GitHub user accounts are not linked. To link the two accounts, authenticate to GitHub using a /github slash command, /github signin.

The /github slash command also accepts a subscribe argument that you can use to subscribe to an Organization or Repository's activity /github subscribe <organization>/<repository>.

unfurl_code

If you originally gave the app access to "All repositories" and you've created a new private repository on GitHub after installing the GitHub integration for Slack, the /github subscribe command will work automatically on your new repository. If you installed the app on a subset of repositories, the app will prompt you to install it on the new repository.

The /github slash command also supports unsubscribe. To unsubscribe to notifications from a repository, use /github unsubscribe <organization>/<repository>

【讨论】:

  • 我认为我们从未建立过用户级订阅。我们将预定的提醒推送到将 Github 应用程序作为频道成员的特定频道。可能有些人是自己做的。会调查。感谢您的领导。
  • 我看不到它查找用户名的方法,否则,我认为这些消息的行为更像“@here”或“@channel”。或者,您可以将作者的 slack 用户 ID(不是显示名称)放在拉取请求中,但这会更麻烦。我认为如果您更改 github 或 slack 用户名,例如当某人结婚并更改姓名时,您也必须取消订阅/重新订阅。
  • 这最终修复了它,一段时间。不清楚为什么它会再次为某些用户中断,但似乎是正确的答案。谢谢。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-07-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-02-05
  • 2019-06-09
相关资源
最近更新 更多