Project

General

Profile

Actions

Feature #5581

open

expose `send_email` option in the HTTP API, for `comment_commit` and `comment_pull_request`

Added by Olivier Renaud about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
14.01.2020
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:

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.

Actions

Also available in: Atom PDF