-
Type:
Bug
-
Resolution: Timed out
-
Priority:
Low
-
Component/s: Repository - Branch List
-
5
-
Severity 2 - Major
-
790
Issue Summary
Currently, it is possible to delete the target branch for an open PR, which causes a few issues on the platform.
Steps to Reproduce
- Create a PR to branch1;
- Leave that PR as open,
- Go to repository branches view or use BB API > Delete branch1 ;
- go back to the open PR where branch1 was a destination branch > try to leave a comment > will result in 400 response
- try to merge the same PR > merge will be successful and the deleted branch1 will be re-created.
Expected Results
- Branch deletion that is part of an open PR should give a warning;
- leaving a comment on the same open PR shouldn't result in 400 - since the PR does exist and we allow it to still be merged successfully
Actual Results
- Branch that is part of an open PR is allowed to be deleted without any warning;
- This causes new comments to that PR error out with user error (400);
- Users are even allowed to approve and merge PR successfully, where destination branch was previously deleted and that branch is re-created again after the merge
Workaround
Currently, there is no known workaround for this behavior. A workaround will be added here when available
- mentioned in
-
Page Loading...