fixed incorrect method for GetRepo in Drone client
This commit is contained in:
parent
dac460f488
commit
768b299543
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ type RepoService struct {
|
|||
func (s *RepoService) Get(host, owner, name string) (*model.Repo, error) {
|
||||
var path = fmt.Sprintf("/api/repos/%s/%s/%s", host, owner, name)
|
||||
var repo = model.Repo{}
|
||||
var err = s.run("PUT", path, nil, &repo)
|
||||
var err = s.run("GET", path, nil, &repo)
|
||||
return &repo, err
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue