So, if we use it, BitBucket's pull request won't be closed because gitreflow merge the pull request manually into master. After master has the new change, the pull request will become empty.
I think the workflow can be changed to:
Assuming we want to merge the branch A into master.
- Squash all commits in A into a single commit and force push. The pull request on Bitbucket will reflect this change.
- Use BitBucket API to merge (instead of merging manually)
In this way, we won't have an empty pull request.
I understand this might be a lot of work though.
(This workflow works for Github as well.)
So, if we use it, BitBucket's pull request won't be closed because gitreflow merge the pull request manually into master. After master has the new change, the pull request will become empty.
I think the workflow can be changed to:
Assuming we want to merge the branch A into master.
In this way, we won't have an empty pull request.
I understand this might be a lot of work though.
(This workflow works for Github as well.)