Branch + PR filtering

Hello,

In a lot of CI workflows, we have 2 main workflows:
1- Analyze code when Pull Request is made.
2- Deploy when code is merged on specific branches (ex: master)

It seems circleci only supports one or the either but not both options at the same time.

Am I assuming this correctly?

Heya @jsaadep, CircleCI does offer the ability to only build on pull requests, which will also build the default branch (typically master). This can be found under the Advanced Settings for the project :slight_smile:

Indeed, but it does not allow some other usual CI scenarios:

Build on PR
Also build on specific branches (not only on master).