Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notify specific user on status #8

Open
antondalgren opened this issue Jan 23, 2020 · 1 comment
Open

notify specific user on status #8

antondalgren opened this issue Jan 23, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@antondalgren
Copy link

I would like the possibility to notify a specific user in the message that's posted to a channel using the user_id of the specific user.

The use-case is that everyone in the team should see the notification but the one that pushed a failing pipeline should be explicitly notified.

@jplhomer jplhomer added the enhancement New feature or request label Feb 3, 2020
@DDraiman1990
Copy link

Not sure if its the best solution for you problem but you can mention people in the "status" field for a notifications.

  • So if I want to mention a user I would do <@user-id>, where user-id is the user's slack ID.
  • If I want to mention a group I would use <!subteam^group-id> where group-id is the group's slack ID.
    • To find out what the group slack ID is you can log into the workplace via the website, not the native app, and go to "People and User Groups" then tap a group and copy the ID from the URL.

An example for the mention in the status is:

uses: voxmedia/github-action-slack-notify-build@v1
with:
  channel: app-alerts
  status: STARTED | <@U4HD520SH> | <!subteam^UXHD527YH>
  color: good
env:
  SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants