Why not to unify git mr and git pr into one command?
I have in my script git-req (much more primitive than yours) this:
repo_url="$(git config --get remote.origin.url)"
if [[ "${repo_url}" =~ gitlab ]] ; then
rem_ref_name="merge-requests"
loc_ref_name="mr"
else
rem_ref_name="pull"
loc_ref_name="pr"
fi