Skip to content

gh pr merge «pr» --delete-branch still asks me if I want to delete the branch #2715

@davetron5000

Description

@davetron5000

Describe the bug

> gh pr merge 184 --delete-branch
? What merge method would you like to use? Create a merge commit
? Delete the branch locally and on GitHub? (y/N)

I would expect it to not ask me about deleting. Same behavior with -d.

Steps to reproduce the behavior

  1. Make a branch
  2. Merge it via gh pr merge «pr number» --delete-branch
  3. See that you are still asked about deleting the branch

Expected vs actual behavior

Expecting it to not ask and delete the branch.

Version

macOs catalina, via homebrew:

> gh --version
gh version 1.4.0 (2020-12-15)
https://github.com/cli/cli/releases/latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issuehelp wantedContributions welcomepriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions