I have been trying to create a bamboo.yaml that both creates new plan branches for pull requests and plan branches for all release/.* branches.
Is it possible to create a specification that has different integration for different plan branches?
branches:
create:
for-new-branch: release/.*
delete:
after-deleted-days: 14
after-inactive-days: 14
branches:
create: for-pull-request
integration:
merge-from: ${bamboo.repository.pr.targetBranch}
push-on-success: false
link-to-jira: true
I don't want the release branches to merge with anything when built but plan branches from PRs should always be merged with the target branch.