GitLab has an annoying issue where single line breaks get removed. Because of this, if I write the following in a merge request:
BUG: 341318 BUG: 295506 BUG: 309808 BUG: 200183
...It turns out like this: BUG: 341318 BUG: 295506 BUG: 309808 BUG: 200183
Then when the merge request lands, the commit hookscript doesn't recognize that kind of input and none of the bugs get closed.
For a recent example, see https://invent.kde.org/kde/okular/merge_requests/39
This behavior or removing the newlines seems like a bug in GitLab, and we can work around it by instead writing out the keywords like this:
BUG: 341318 BUG: 295506 BUG: 309808 BUG: 200183
But people are going to forget to do this. Can we make the hookscript more intelligent so that you don't need to put each keyword on a newline?