Skip to content

Automatically delete a branch after PR merge #908

Closed

Description

@fregante

Is there any reason not to delete it?

Activity

  1. hkdobrev commented on Dec 24, 2017

    @hkdobrev
    Contributor

    👍

    However, here's a case where you don't want to delete - e.g. you have a long-running branch like the git-flow where you have development, release branches, hotfix branches and then you can create a PR to review what would be merged and merge it, but don't delete the long-running branch.

    So I think this could be either be an option in the UI checked by default that you want to merge and delete or an option in the extension for all merges one does.

    For the actual button, we have 2 cases where the button would be missing or disabled:

    • you don't have permission to delete the branch because you are not a collaborator on the repo of the head PR branch
    • the head branch of the PR is a base branch of another PR - I remember you cannot delete in this case, but not sure what the UI was.
  2. fregante commented on Dec 24, 2017

    @fregante
    MemberAuthor

    Yeah, it’s auto click the button if it’s found, that’s not an issue.

    Hmmm and the long-running branches make this possible feature a bit troublesome. Maybe it can just be part of #865

  3. fregante commented on Mar 5, 2018

    @fregante
    MemberAuthor

    Closing as duplicate of #1024

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions