Update Github Slack user map - CDCgov/prime-simplereport GitHub Wiki
How to update Github/Slack user map
- Build the user map you need in the following format; you can add as many records as you like.
- GitHub usernames are public and should be easy to come by.
- To get a Slack member id, click to view that user in Slack, click the
⋮
to open more options, and then copy member ID
.
'"{ "github_actor_username": "SLACK_MEMBER_ID", "another_github_username": "ANOTHER_SLACK_MEMBER_ID" }"'
- Visit the prime-simplereport action secrets in the settings.
- Click to edit the user map, paste your updated user map and save.
notes
- It's possible to reuse the Slack message action, so we may end up with multiple user maps for different types of alerts.
- If the user map isn't formatted correctly, the
Slack Messages
action will fail to parse it and the workflow will be marked as a failure