Adding on the existing answers, note that you can override GitLab CI variables like CI_PIPELINE_SOURCE = 'merge_request_event' to specifically trigger your MR pipeline against a branch.