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

Add documentation on slack mentions #150

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

phongulus
Copy link
Contributor

Add some documentation on setting up Slack mentions and expected behaviour.

@@ -41,6 +45,9 @@ Refer [here](https://docs.github.com/en/free-pro-team@latest/developers/webhooks
| `status_rules` | status rules config object | all status notifications are ignored |
| `project_owners` | project owners config object | no project owners are defined |
| `ignored_users` | list of users to be ignored on all notifications | no user is ignored |
| `user_mappings` | list of mappings from git email and/or GitHub handle to Slack email | no mapping defined

Note that in `user_mappings`, git email to Slack email mappings are used for status DMs, while GitHub handle to Slack email mappings are used to get Slack mentions in notifications.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not explained why need to map by handle when email also available, the latter should be always better?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Email is only available for commits and pushes, and it's the one from git config user.email if I understand correctly, and that's what I meant by "git email" in the readme. So it's possible to match between emails for CI status DMs. In other types of comments we only have access to the GitHub handle. I can make this clearer in documentation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @rr0gi meant to explain the design considerations and decisions on the "GitHub handle to Slack email mappings are used to get Slack mentions in notifications" part, i.e. why not use git email to Slack email too?

@Khady
Copy link
Contributor

Khady commented Sep 30, 2024

@phongulus anything missing to merge this PR?

@phongulus
Copy link
Contributor Author

Sorry, I completely forgot about this. I'll look again, add architectural comments as per @tysg's suggestion and re-request review.

@phongulus phongulus force-pushed the phong/slack-mention-docs branch from 849c273 to 2ec8409 Compare October 7, 2024 02:56
@phongulus phongulus requested a review from tysg October 7, 2024 02:57
@phongulus
Copy link
Contributor Author

Sorry for the delay. @Khady for some reason I can't request a review from you. Can you take a look, and if it looks OK i think we can merge.

@rr0gi rr0gi requested a review from Khady October 8, 2024 20:28
@rr0gi rr0gi merged commit 8913567 into ahrefs:master Oct 8, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants