This commit is contained in:
Corey Johnson 2020-05-22 15:21:51 -07:00
parent 9113092f5c
commit 9c88cd67ee

View file

@ -1018,7 +1018,7 @@ func BranchDeleteRemote(client *Client, repo ghrepo.Interface, branch string) er
var response struct {
NodeID string `json:"node_id"`
}
path := fmt.Sprintf("/repos/%s/%s/git/refs/heads/%s", repo.RepoOwner, repo.RepoName, branch)
path := fmt.Sprintf("repos/%s/%s/git/refs/heads/%s", repo.RepoOwner(), repo.RepoName(), branch)
return client.REST("GET", path, nil, &response)
}