mattermost-plugin-github icon indicating copy to clipboard operation
mattermost-plugin-github copied to clipboard

@mention on your PR or Issue should supercede muted user comments

Open DHaussermann opened this issue 5 years ago • 6 comments

There is now a mute list to prevent DM notification when users on the mute list comment on your PRs or issues.

When a user who is on your mute list @mentions you on one of your own issues or PR no notification DM is received. The functionality of delivering @mentions should take precedence here even though the users's comment would otherwise be muted if it did not contain the at mention.

note: The issue can only be observed when adding a mention on a PR or issue that is assigned to the test user. In other cases @ mentions are working as expected and the mute list causes no problems.

Steps:

  • Connect test user to GitHub
  • Add another user - UserB to your mute list
  • Login to Guthub as UserB
  • Locate a PR or issue the test user is assigned to
  • Comment on the issue with an at mention for the test user

Observed: No DM received by the test user as UserB is muted Expected: At mention should be delivered regardless

DHaussermann avatar Oct 08 '20 04:10 DHaussermann

@DHaussermann That behaviour is by design. The documentation for the mute features reads: You will not receive notifications for comments in your PRs and issues from those users.. Maybe it should be made more clear that this also includes PRs and issues a users is assigned to. But I think the documentation makes clear that it's not only about @-mentions.

hanzei avatar Oct 08 '20 09:10 hanzei

Thanks @hanzei, I thought @ mentions would be treated differently from other comments. Are we sure we want to block @mentons as well? This seems to be mostly to block automated tooling so, I'm not sure if blocking @ mentions is something needed.

DHaussermann avatar Oct 08 '20 14:10 DHaussermann

I'm inclined to say yes. @nickmisasi What do you think about this?

hanzei avatar Oct 08 '20 15:10 hanzei

Hello! My intention with the mute command was to not block notifications for @ mentions. I'm pretty sure with the current behaviour, if a muted person/bot @mentions you from an issue/PR that isn't your own, you will still get that notification.

I think that behaviour should be consistent across everything. If someone @ mentions you, it's probably important. So I tend to agree with @DHaussermann that @ mentions should take preference.

nickmisasi avatar Oct 08 '20 15:10 nickmisasi

Is it common for bot/integrations to @-mention someone? If so, we should block it, if not I'm leaning towards no.

E.g. Mattermod @-mentions people for cherry-picks which doesn't seem important to me.

hanzei avatar Oct 08 '20 15:10 hanzei

I agree bot/integrations @ mention is probably not a very common thing. I'm 0/5 on which way it should be, I see advantages to both. I think whatever way we choose should be consistent across all cases to avoid confusion.

There is potential for people using this mute functionality on non-bots. So that could be something to keep in mind.

nickmisasi avatar Oct 08 '20 16:10 nickmisasi