-
Notifications
You must be signed in to change notification settings - Fork 8.2k
--delete-branch=false flag does not prevent branch deletion on merge #11508
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't workinggh-prrelating to the gh pr commandrelating to the gh pr commandmore-info-neededMore info needed from user/contributorMore info needed from user/contributorneeds-triageneeds to be reviewedneeds to be reviewedstale
Description
When merging a pull request from the develop branch into master using the GitHub CLI with the --delete-branch=false flag, the develop branch is still deleted despite this flag being set.
The Automatically delete head branches setting enabled.
Command:
gh pr merge <PR_NUMBER> --repo <owner>/<repo> --match-head-commit $SHA_PULL -t "sync(): develop to master" --body "sync(): develop to master" --merge --admin --delete-branch=false
Expected behavior:
The branch should not be deleted after the merge when --delete-branch=false is specified.
Actual behavior:
The branch is deleted regardless of the --delete-branch=false flag.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggh-prrelating to the gh pr commandrelating to the gh pr commandmore-info-neededMore info needed from user/contributorMore info needed from user/contributorneeds-triageneeds to be reviewedneeds to be reviewedstale
Type
Fields
Give feedbackNo fields configured for issues without a type.