We are using Bitbucket cloud and our master branch is protected to disallow any direct pushes.
Once the pull request is approved, Is there a CLI command that can be used to merge the pull request? This is because we would like to increment the version in the master branch right before the merge operation.
Is there a way to allow only specific branches to merge to the master branch?
In the CI-CD process, how(and when) does version bump happen? If directly merging through bitbucket/GitHub dashboard, then how to bump the version right before the merge? We won't do it after the merge because the CICD pipeline starts as soon as there is a change detected in the pipeline, and if version bump was happening through the pipeline, it will just end up in a loop.
Also, we are NOT using bitbucket pipelines.