I'm looking at using BitBucket for my organisation and I have a query about the workflow, I was thinking of a system where a dev can create a branch called "fix-<issue number>" and when they commit their changes the branch is automatically merged with the master branch and the changes are pushed to the live server.
If they create a branch called "feature-<issue number>" when they commit their changes a pull request is opened and the changes are pushed to a test server, once the pull request is closed the changes are pushed to the live server.
Would this be possible, if so how would I go about implementing it?