How to prevent the CI to create a Merge commit

I’m using a script in CI to check if all commits message in the MR match with conventionalcommits.

The problem is that the CI always create a Merge commit with a commit message generate from the template so the script fail.

As I’m using “Merge commit with semi-linear history” as merge method, is it possible to prevent the CI to create this commit before running the pipeline ?

Here is my gitlab-ci.yml file:

---
workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
      when: never
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_COMMIT_TAG

stages:
  - lint

conventional-commit-check:
  image: python:3.12.2
  stage: lint
  ....