From 9c48e2da14220db19ab8a78a0028e99c13a535f7 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Fri, 22 May 2020 15:25:25 -0700 Subject: [PATCH] Delete the branch --- api/queries_pr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/queries_pr.go b/api/queries_pr.go index b4b820579..ea1b778cc 100644 --- a/api/queries_pr.go +++ b/api/queries_pr.go @@ -1019,7 +1019,7 @@ func BranchDeleteRemote(client *Client, repo ghrepo.Interface, branch string) er NodeID string `json:"node_id"` } path := fmt.Sprintf("repos/%s/%s/git/refs/heads/%s", repo.RepoOwner(), repo.RepoName(), branch) - return client.REST("GET", path, nil, &response) + return client.REST("DELETE", path, nil, &response) } func min(a, b int) int {