Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github Scheduled Reminders - Some Slack Mentions Aren't Linked

Tags:

github

slack

We have setup scheduled reminders for one of our teams in GH. When the reminders are displayed in Slack, some of the users' accounts are not linked properly. For those users, it just shows their GH username unlinked. Everyone else (probably 80% or better of our users) has a proper @ mention instead of their GH username. I've looked at profiles for unlinked users in both systems and cannot determine a clear root cause.

Has anyone else seen this, any possible solutions?

EDIT: The plot thickens. I'm seeing the SAME USER in the SAME REMINDER both be @ mentioned correctly/linked and incorrectly/unlinked. There's a pattern for the affected users:

  • On the line that prints the PR #, Title, and Owner, the affected users' github username appears unlinked.
  • On the line that prints the days stale/days old/waiting on list, SOME of the affected users' will be correctly @ mentioned and some will not.

Maddening.

like image 462
AJ. Avatar asked Sep 11 '25 16:09

AJ.


1 Answers

For the slack users where this doesn't work, have you tried having them unsubscribe from github using a /github unsubscribe followed by a /github subscribe command again to get github to refresh their slack account information?

I am not sure if the application you are using is a separate application or if it is part of the github to slack integration. If it is, it talks about how your accounts are not linked until this step is performed.

I came across this article here: 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>
like image 125
Joseph Ishak Avatar answered Sep 15 '25 21:09

Joseph Ishak