This is the first stage of notifications related to pull requests, the full feature target can be seen in request #11105.
Add / remove reviewers
After having created a PR, on the PR view, there is a list of reviewers that is empty.
I can click on "Edit" to add people from their usernames. An autocompleter is available. Raw email address can not be added.
It's possible to remove reviewers with the same process.
"Owner" of the PR is automatically part of the notification list. Who is "owner":
- creator of PR
- commit author => NO, we don't want to notify linux kernel contributors
- push author
Notifications
There is a check of permissions as well as an email de-duplication at sending time to avoid leaking informations.
The code should also respect "Truncated Emails"
Notifications are handled with Backend Workers (Redis) whenever possible to avoid slowdown on push/comment & co.
Content of the notification to be defined
- On reviewer added:
- commit summary (id, shortlog)
- link to the PR
- On comment:
- link to the PR
- comments + context (file, line)
- On push:
- link to the PR
- shortlog of modified files (/!\ force push)
- Merge/abandon
- link to the PR
- status of PR
Bonus: The information of reviewers added/removed is displayed in the PR log