We have multi environment project and each environment has own branch for CI/CD
e.g master, env/UAT, feature 1
when we create feature 1 we branch from master, when feature is finished we want to deploy it to uat.
To prevent developers pushing to uat directly we have restriction that says prevent pushes without pull request.
now when developer finishes feature he create PR from his branch to UAT. But if there is conflict he need to resolve it.
NOTE he cannot pull UAT into feature, because on UAT we have multiple features and if we decided to push only one feature from current sprint into release we dont want all others appear there.
So basically we have approved PR, but we cannot merge it from bitbucket website. So we go to repository and merge to local. But when we try to push merged changes system prevents to do this, because it is not from PR.
IMO if there is approved PR, developer should be able to push his merged commit, even with config "prevent changes without PR"
How can we act in this scenario?
Here is our flow.
