To escape the complexity of managing multiple accounts on bitbucket I am using email aliases and had my personal email as primary and an alias to my company issued email which is also configured as identity on my work computer.
When I perform actions locally (commits, merges etc.) in the git log the correct email address is used (the company one) and it's associated with my account on the side. Which is good.
However if I perform any action from the site, e.g. approve a pull request then my primary email is added to the commit messages after a merge.
So my proposal is to allow assigning aliases to particular repositories to match the identity configured for the local repository in git.
I hope it makes sense.
I've already asked this as a question in the community portal, but it seems like it's not possible at the moment: