Rule triggers incorrectly (changeset doesn't match the rule changes)

Problem to solve

Rules changes trigger incorrectly

The pipeline editor “full configuration” shows this job

job:
  rules:
  - changes:
    - build.sbt
    - apps/**/*
    - project/**/*
    - libs/**/*
    - repl/**/*

Steps to reproduce

I have created a merge request modifying only one file (under .gitlab) that isn’t part of the changes list:

But the job above would trigger.

How can we debug the rules? Is there any way to look at the rule evaluation for a given MR?

Versions

Please select whether options apply, and add the version information.

  • Self-managed
  • GitLab.com SaaS
  • Self-hosted Runners

Versions