Since multiple mappings can apply, priority ensures the intended one is evaluated first. In this case, the main branch mapping is set to priority 1, so it always takes precedence over the dev branch mapping at priority 2. This guarantees that commits from refs/heads/main are resolved against the main branch rule, while all other branches are matched by the dev branch rule.