My team is using pull requests, and we also push our latest changes at the end of the day, even if the latest is a work-in-progress. This has the unfortunate side-effect of sometimes updating a previous pull request with broken code. I can imagine a few possible solutions:
- Open the pull request on a commit instead of on a branch (I can't seem to find an option to open a pull request on a commit in the Bitbucket web UI; does it only support pull requests on branches?)
- Work in one branch, but create or maintain a separate branch for the pull request
- Commit in-progress work locally at the end of the day but don't push (we prefer to push every day in case someone needs to resume or incorporate someone else's work)
Are there any other options I'm missing, and what solution worked for you to resolve this issue?