bug in CLI; wrong endpoint call

This commit is contained in:
Ulrich Schreiner 2015-02-12 11:33:30 +01:00
parent 46251ffa92
commit 77bab36013

View file

@ -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