Fix missing MR links in prepare_release_notes script
This fixes a bug with the prepare_release_notes
script where the ! was missing before the MR ids, and so the link wasn't generated. Also, actually use the MR id and not the MR object id (!)
Plus minor code cleanup.
Thanks to @tvazquez for spotting this!
Edited by Edward Moyse