rtCamp/action-slack-notify

`SLACK_LINK_NAMES` not working

ndom91 opened this issue · 5 comments

Hey so i saw recently this new env var was added to automention usernames in slack, but I can't seem to get it to work.

I have a few variations, none of which work.

I set SLACK_LINK_NAMES: true.

Then, in one SLACK_MESSAGE I have, PR by <@{{ github.action}}> which doesn't get linked, just prints the text PR by @ndom91, for example.

In another SLACK_MESSAGE I have the username explicitly written out, i.e. PR by @engineering-team which also doesn't seem to get linked.

Am I missing something?

Please refer: #93 (comment)

In general with SLACK_LINK_NAMES: true, you will be able to use @here, @channel etc. For tagging a user, you will have to refer the comment mentioned above and use their ids to tag them.

Yeah I thought SLACK_LINK_NAMES went around having to get the userId. No?

Then quick question, I know its not related to this plugin per se, but do slack groups/teams have ids? Or just users?

Groups/teams also have ids, check the point 3 here: https://stackoverflow.com/a/44883343/13402747

I need to know the user id from github.event so I get automatically at workflow config file, do you know @mrrobot47 ?