mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 10:11:23 +02:00
fixed incorrect method for GetRepo in Drone client
This commit is contained in:
parent
dac460f488
commit
768b299543
@ -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 New Issue
Block a user