From 77bab3601363880ec8a9ceadd378dac3e3bf3d83 Mon Sep 17 00:00:00 2001 From: Ulrich Schreiner Date: Thu, 12 Feb 2015 11:33:30 +0100 Subject: [PATCH] bug in CLI; wrong endpoint call --- client/repos.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/repos.go b/client/repos.go index 5afa1452b..29c0d38f4 100644 --- a/client/repos.go +++ b/client/repos.go @@ -32,10 +32,10 @@ func (s *RepoService) Enable(host, owner, name string) error { return s.run("POST", path, nil, nil) } -// DELETE /api/repos/{host}/{owner}/{name} +// POST /api/repos/{host}/{owner}/{name}/deactivate func (s *RepoService) Disable(host, owner, name string) error { - var path = fmt.Sprintf("/api/repos/%s/%s/%s", host, owner, name) - return s.run("PATCH", path, nil, nil) + var path = fmt.Sprintf("/api/repos/%s/%s/%s/deactivate", host, owner, name) + return s.run("POST", path, nil, nil) } // DELETE /api/repos/{host}/{owner}/{name}?remove=true