slack
slack copied to clipboard
Get slack username from GitHub userlogin
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,
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.
@ashokirla Do you have any thoughts here?