In our project we use Fork & pull model when everybody have a form of a main repo and create pull request when finish task. This workflow is good enough when you have only one branch in main repo, but now we have to branches. There are "stable" branch for production code and "develop" for new features. Now our workflow looks like this:
- fix a bug -> should create a pull request for stable(we call it hotfix)
- create a feature or fix a bug in new feature -> should create a pull request for develop(we call it feature)
- when we want to release new version we merge feature in stable.
But now we have a problem, when somebody creates a hotfix, he should merge this pull request to both stable and develop branches. This is not a big problem, but it is boring.
Is there a way to automate this process of syncing stable and develop branch? maybe some kind of hook or something another?