Feature #5581
openexpose `send_email` option in the HTTP API, for `comment_commit` and `comment_pull_request`
0%
Description
In the Python API, CommentsModel.create
has a send_email
argument, that controls whether mail notifications is sent to users.
In the HTTP API (comment_commit
and comment_pull_request
), there is no such option. It is possible to add CC mails, but not to mute the notifications.
I am writing a bot that will act as a pull request reviewer. As each change of a PR status requires a comment (under review, approved, rejected), I would like to send mail notifications only for important events (rejection). I know my users, they will definitely complain if they receive too much emails from this bot!
The request is to add a send_email
parameter to these two HTTP API methods. It is not clear how this new argument should play with the existing extra_recipients
argument, though.