Skip to content

PR's were merged, but there was a problem when deleting branches #21

Description

@tadeu

After a !merge RFDAP-1939 command, it replied with:

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'}]}

I've noticed that all 3 pull requests were merged, but the branch wasn't deleted in some repos. The problem was that there was a Pull Request targeting the branch.

There are two things that could be improved:

  • The operation could be more atomic, if possible. (Do not merge if there's a problem like this)
  • The message could be more helpful, saying what repos have the problem, and what are the possible causes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions