ci: Fix identifying commits in MR
When a MR uses a private namespace, "origin" refers to that, and its master branch may be outdated with regard to upstream master.
We are really only interested in checking the line changes from the commits in the MR, so figure out the correct branch point instead.