Sorry for the late response, we're going through a release that's taking up a bunch of my time. Opening an issue with GitLab is probably a good idea. I've tried to recreate your issue with a local setup of GitLab (latest version) but it seems to be working fine for me.
Which version of Mattermost and GitLab are you using? If it's not latest maybe try updating to latest to see if that helps