mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 08:02:18 +02:00
bug in CLI; wrong endpoint call
This commit is contained in:
parent
46251ffa92
commit
77bab36013
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user