Comment mentions
Since 2017.1, it is possible to use @mentions in review comments. By default, @mentions will auto-complete to all users in the system, but it is possible to fine tune this behaviour.
You configure the behaviour of @mentions in comments with the
mentions configuration block in the
file. Here is an example:
SWARM_ROOT/data/config.php
<?php
'mentions' => array(
'mode' => 'global',
'usersBlacklist' => array('super', 'swarm-admin'),
),
-
mode -
This can be one of
global,projectsordisabled, and controls the scope of the auto-complete dropdown that is shown when the user starts typing an @mention in a comment.globalwill display all users in the system,projectswill only display project members in the auto-complete list, anddisabledmeans that no auto-complete drop down will be shown. -
usersBlacklist -
Any users listed here will never appear in the drop down list of auto-suggested users when @mentions are used.