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
,projects
ordisabled
, and controls the scope of the auto-complete dropdown that is shown when the user starts typing an @mention in a comment.global
will display all users in the system,projects
will only display project members in the auto-complete list, anddisabled
means 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.