You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When merging a branch that cannot be deleted because of some reason, the only output is an exception message of "cannot delete branch", with no hints that the merge itself was successful.
To illustrate, this was my workflow:
I had 3 branches: A, B and C and two open PRs: A <- B and B <- C
I tried doing a !merge B and got only this message:
Computer says nooo. See logs for details:
400: {'errors': [{'context': 'name', 'message': 'You cannot delete this branch since it has at least one open pull request associated with it', 'exceptionName': 'com.atlassian.bitbucket.internal.branch.UnsupportedOnBranchException'}]}
At first I thought that the merge didn't occur since no confirmation showed up, so I changed the target of my PR 2 to be A <- C and used the same command again, !merge B and this time got this message:
No pull request open for this branch!
Then I confirmed and the merge was really done, I believe it is just question of improving the output when an exception occurs.
The text was updated successfully, but these errors were encountered:
When merging a branch that cannot be deleted because of some reason, the only output is an exception message of "cannot delete branch", with no hints that the merge itself was successful.
To illustrate, this was my workflow:
I had 3 branches: A, B and C and two open PRs: A <- B and B <- C
I tried doing a !merge B and got only this message:
At first I thought that the merge didn't occur since no confirmation showed up, so I changed the target of my PR 2 to be A <- C and used the same command again, !merge B and this time got this message:
No pull request open for this branch!
Then I confirmed and the merge was really done, I believe it is just question of improving the output when an exception occurs.
The text was updated successfully, but these errors were encountered: