Filtered branches does not get triggered on PR and Pushes

Hello there,

I am experiencing issues with my CircleCI builds not triggering as expected for pull requests. My project is configured to build on certain branches, and I’ve noticed that builds are not running for pull requests to these branches. See config below

version: 2

  version: 2
      - compile:
              - dev
              - staging
              - master
              - main-worker
              - staging-worker
              - dev-worker

Could you please help me understand why this is happening? I suspect it might be related to the “Only build pull requests” setting in my project’s configuration, but I am not certain. I have toggled this on/off not success. Any suggestions or guidance on how to resolve this issue would be greatly appreciated.

Thank you for your assistance