Can't configure automatic start job by pull request ONLY into two specific branches (main and dev)

I need to automatic start job in pipeline ONLY when i created pull request into SPECIFIC branches (main and dev).
For example: i created pull-request from feature/test1 branch to another feature/test2 branch and in this case i don’t need to start my pipeline job. I only need to start my pipeline job when i created pull request e.x. from feature/test1 to main branch or to dev.
I have following setting:
And this part of pipeline i configured:
I have this warning and can’t solve this issue:


Please help me to find the solution.