mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 01:10:31 +00:00
Merge pull request #818 from bradrydzewski/master
fixed incorrect method for GetRepo in Drone client
This commit is contained in:
commit
f33b6efb74
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