slack icon indicating copy to clipboard operation
slack copied to clipboard

Get slack username from GitHub userlogin

Open jkmathew opened this issue 3 years ago • 1 comments
trafficstars

Is your feature request related to a problem? Please describe. I am trying to send some custom notifications too some channel from some tools with some scripts. I want to tag some users in the message. For example I can get user login from GitHub PRs API, I want to notify that particular user on slack(if the user has connected GitHub with slack). I am looking for a solution to get slack username from the GitHub userlogin. I could see Github app on slack sending PR notifications with proper users tagging. Like this, Screenshot 2022-09-19 at 14 34 20 I know this is tagging works only if this is user has connected his GitHub on slack for that particular slack workspace. How can I get this user making in my scripts? Through some slack/github api?

Describe alternatives you've considered An alternative is to keep user mapping in the code. But this is hard to maintain since new users are being added and deleted to the org frequently.

jkmathew avatar Sep 19 '22 12:09 jkmathew

@ashokirla Do you have any thoughts here?

jkmathew avatar Oct 03 '22 12:10 jkmathew