Slack: Use slack usernames when referring to GitHub user activity

Created on 8 Mar 2018  ยท  38Comments  ยท  Source: integrations/slack

Loving the integration so far, we just started using it! Since there's a way to authenticate with the plugin via /github login, I was thinking it should be possible to use slack usernames when subscribed alerts are pulled through. For example at the moment we're getting something like the following:

Deleted branch `feature/alert-new-sso-user`

My GitHub username is "BlueHatbRit", but my slack username in the instance of my companies workspace is "elliot". It'd be good if we could instead render:

elliot (BlueHatbRit)
Deleted branch `feature/alert-new-sso-user`

Where clicking on "elliot" might link to my slack profile, and clicking on "BlueHatbRit" might link to my github profile (or both to my github profile).

feature

Most helpful comment

Yep, would still like to see this happen ๐Ÿ˜„

All 38 comments

Would very much like to see this as well. When seeing this information in Slack my likely course of action would be to discuss with that person in chat if I have immediate questions. In GitHub I'm typically interacting at the issue/pull request/repo level rather than the user level.

Is this still relevant? If so, just comment with any updates and we'll leave it open. Otherwise, if there is no further activity, it will be closed.

I still believe this holds value, especially in organizations where there are 1) a fair number of people 2) some people don't have an obvious GitHub username/profile picture. If someone hasn't authenticated with GitHub to Slack, could still default to the current behavior.

I could definitely use something similar to this in my place of employment to be able to directly ping a github user on the status of a build rather than just dropping it into a channel. Right now it seems that most people are manually maintaining mappings of github usernames to slack usernames to do this or doing the mapping via email addresses if they match but that's not always the case.

Is this still relevant? If so, just comment with any updates and we'll leave it open. Otherwise, if there is no further activity, it will be closed.

Yep, would still like to see this happen ๐Ÿ˜„

We thought doing /github signin was meant to connect GitHub and Slack usernames, since the response was: :white_check_mark:Success! @haikal is now connected to @haikalpribadi, but this turned out to be misleading. We were expecting to get notifications in Slack for github conversations/notifications, but that turned out not to be the case. I think this is a major flaw in what would be a very great Slack App - definitely a bug worth solving. Does anyone in @integrations team plan on solving this?

Seconding the request to connect GitHub usernames to Slack usernames. In our use case, we have pull request and review notifications going to a single Slack channel. Notification come in with only GitHub usernames. It would be great to have a way to map these to Slack usernames and have notifications come in with an @ so that each user gets an individual notification when a pull request or review includes them.

Exactly the same case. Unless there is no link between GitHub username and Slack username, the "Reviewers" field in opened PR is useless.

@bkeepers I think this issue should be labelled a bug, rather than a feature. :)

In the short term, a less onerous work around would be to allow the default subscriptions for a repository to be edited/selected by the user. The connection between a GitHub username and a Slack username works if a Slack user subscribes to the repository from their own channel. It's not great that each user has to subscribe to each repository, but in our use case, we have a small team and less than 20 repositories, so it's an option we might consider. However, our team is only interested in getting notifications for pulls, reviews, and statuses. Currently this requires 3 commands for each repository, because subscribing to the repository gives the user unwanted (in our case) subscriptions to issues, deployments, public, commits and releases. So after subscribing to the repo, the user has to unsubscribe from these notifications, and then subscribe to reviews (not included in the default). If the default notifications were configurable for the repo subscription, this could all be accomplished with a single subscribe command.

To be clear: I think most of us would still prefer that the app could map the GitHub username to the Slack username and issue a Slack mention for that user whenever a GitHub notification would be issued that user. However, making the default notifications configurable for app users, I think would be great in any case, and I think might offer a partial workaround. Submitted for consideration.

I'm implementing some features and I'm considering implementing direct messages to users when they are marked as reviewers, their pull requests get approved/rejected, etc. You would be able to subscribe to whatever you are interested in.

Would this work for you instead of regular mentions?

Notifications into slack is a nice idea (personally for me I'd want this turned off though), but the original inspiration for the issue was knowing who is responsible for a commit or a PR. Many people at my organisation have had their github account for a number of years and the username may not bare any relation to their actual name (like mine). It would be really useful to see a branch merge or a commit message in the channel and also know the persons slack username so I know who that relates to.

This would help on-boarding onto teams much easier, and would also stop the user having to mentally parse usernames over to the name they know them by on slack / in person.

For me, this is much less about knowing when _I_ do something, and more about knowing when Susie on the payments team issues a PR with the github username _XXDragonXX_. That's an extreme example, but even joining a company of 50 people can make it an additional barrier to getting work done "Damn, who made that pull request. I want to go and talk to them in person about for reasons X Y and Z" is the thing I think is most useful.

It's been a long time since I've worked with slack bots, but if a user logs into the github app with slack, there should be access to their slack user ID and their slack username. Keeping that up to date is probably the biggest challenge because, as I recall, a slack username can change without any integration getting a notification. However I'm not sure how frequently people change their slack usernames. I guess this should probably be optional as well, as you could argue it's personal information / a possible information "leak" from the organisations slack. But I believe that's all implementation oriented discussion.

@gimenete I think that's a great idea!

@gimenete here we also demand this feature. Hope to be available soon.

I am curious what the effect of /github signin? I tried this and Slack told me I successfully connected my GitHub account to Slack account, but it seems there are nothing changed. I could still not receive notification on Slack when my colleagues mention me on GitHub comments.

I'll be grateful if anyone could tell me what /github signin is for.

๐Ÿ‘ @gimenete any idea if this will be coming or not?

If you want this to happen, the best thing you can do is submit a PR ๐Ÿ˜„

Just an FYI that Pull Reminders in the GitHub Marketplace does this.

Users are mentioned in Slack instead of having their GitHub usernames printed and there are individual options for receiving DMs for various event types (comments, replies, review requests, etc).

I'm the maintainer of Pull Reminders, so if pricing is an issue email me at [email protected] and I'd be happy to give your team a free account.

cc: @gimenete

we found a workaround using zapier. I have a zap setup from gmail (github emails) to a slack message. setup for assignments, mentions and PR's. interested if anyone else has found a solution.

Pull Panda just acquired by GitHub provides pretty full featured Slack integration.

https://pullpanda.com/

Christopher Alexander
Schlosser Geographic Systems Inc.


From: Aline notifications@github.com
Sent: Wednesday, July 10, 2019 2:48:29 PM
To: integrations/slack
Cc: Christopher Alexander; Mention
Subject: Re: [integrations/slack] Use slack usernames when referring to GitHub user activity (#435)

we found a workaround using zapier. I have a zap setup from gmail (github emails) to a slack message. setup for assignments, mentions and PR's. interested if anyone else has found a solution.

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/integrations/slack/issues/435?email_source=notifications&email_token=AJEOZIDQ4ENPW3J2Y7RUCODP6ZKK3A5CNFSM4EUJVLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZU2XPA#issuecomment-510241724, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJEOZIHQR3V4YTN2TB5JGCLP6ZKK3ANCNFSM4EUJVLWQ.

Hello we upgraded github account just for pullpanda https://github.com/integrations/slack/issues/435#issuecomment-452199256

We want to get notified via slack when users are mentioned in github issues.

We tried every conceivable combination desparately hoping to make it work but there's just not much documentation how to do this, and I'm not sure if it's even possible.

Please share us how to do this.. @abinoda

We would also love to have this. So sad that pull panda has been acquired and shut down by github, without this feature being integrated into github.

So disappointed with this. Just migrated from bitbucket to github to find out that the bitbucket slack integration is way better and this is not only regarding usernames but slack integration such as integration with other CI such as CircleCI & Bitrise is richer out of the box by merely just hooking up slack with bitbucket.

That looks like it does a chunk of what we want, but I'd prefer to see what @gimenete was talking about, and have direct slack chats, rather than group chats with a mention.

It would seem this has grown into a larger request for a _set_ of features than the original intent, which was something like "when you mention someone in Slack regarding GitHub activity, use their Slack mention name instead of their GitHub username."

Scheduled reminders have given us pretty much everything we need, on our end.

It would seem this has grown into a larger request for a set of features than the original intent, which was something like "when you mention someone in Slack regarding GitHub activity, use their Slack mention name instead of their GitHub username."

Yeah it does seem to have gone that way, I'm sure some of these suggestions are valid but it might be worth people splitting those out into separate issues if they're still wanted. Then the contributors and maintainers can discuss those separately and see them clearly.

I'm of the same mind as you @daneah, for the most part scheduled reminders are great. Still my onw request is that the slack integration use slack usernames. The org I work in at the moment has 100's or possibly even 1000's of engineers. Tracing a github handle to a slack handle is substantial effort and if even some of that could be solved within this integration, that would be amazing.

I am needing this as well. would be a cool way to call out the the user in slack regarding their recent commit

+1

This is a really great feature that would add a lot to this integration. +1

+1

+1

+1

+1 please

This feature is exactly what our team need. +1

+1

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dgellow picture dgellow  ยท  4Comments

davidpaulsson picture davidpaulsson  ยท  3Comments

dbuskariol picture dbuskariol  ยท  4Comments

saihaj picture saihaj  ยท  4Comments

EyeCandyEyewear picture EyeCandyEyewear  ยท  5Comments