Reorganize members.yml file
Instead of having two separated mattermost related properties in the yml file as follow :
Team:
John Doe:
mail: john@doe.plop
or
Team:
John Doe:
mattermost: http://mattermost.host/user/john.doe.id
There should be two different things :
- the kind of channel to use to communicate with the user (by default mattermost)
- the way to discover the team member through the channel (by mail or by id)
For instance :
Team:
John Doe:
mattermost:
mail: john.doe.id
or
Team:
John Doe:
mattermost:
id: john.doe.id
This solution would allow the possibility of defining different channel by user and which is prefered and which is the fallback solution.
For instance :
Team:
John Doe:
prefered_channel: mattermost
fallback_channel: mail
mattermost:
id: john.doe.id
mail:
address: john@doe.plop
Edited by Benoit Maurice