I know that we can enable builds to run for PRs only. We have that turned on.
I also know that we can add branch whitelists and blacklists. Our setting is currently the following:
general: branches: ignore: - staging - /releases/.*/
This works somewhat. When we PR from a feature branch to staging, only feature branch is built. The staging branch is ignored.
But when we merge directly from staging to master, master always builds (even though we set the setting to run builds for PRs only).
Ideally, we want to pass green builds at staging only. After that since staging and master are nearly identical, we just merge directly from staging to master knowing that it should be green also without actually running the build.
Anybody know how to ignore master branch, either when PR is not used, or completely?