Merge pull request #578 from bradrydzewski/master
updated badge in README
This commit is contained in:
commit
2fd3e7e250
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
[![Build Status](http://test.drone.io/v1/badge/github.com/drone/drone/status.svg)](http://test.drone.io/github.com/drone/drone)
|
[![Build Status](http://test.drone.io/api/badge/github.com/drone/drone/status.svg)](http://test.drone.io/github.com/drone/drone)
|
||||||
[![GoDoc](https://godoc.org/github.com/drone/drone?status.png)](https://godoc.org/github.com/drone/drone)
|
[![GoDoc](https://godoc.org/github.com/drone/drone?status.png)](https://godoc.org/github.com/drone/drone)
|
||||||
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/drone/drone?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/drone/drone?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ func (s *CommitService) List(host, owner, name string) ([]*model.Commit, error)
|
||||||
|
|
||||||
// GET /api/repos/{host}/{owner}/{name}/branch/{branch}
|
// GET /api/repos/{host}/{owner}/{name}/branch/{branch}
|
||||||
func (s *CommitService) ListBranch(host, owner, name, branch string) ([]*model.Commit, error) {
|
func (s *CommitService) ListBranch(host, owner, name, branch string) ([]*model.Commit, error) {
|
||||||
var path = fmt.Sprintf("/api/repos/%s/%s/%s/branches/%s/commits", host, owner, name, branch)
|
var path = fmt.Sprintf("/api/repos/%s/%s/%s/commits", host, owner, name)
|
||||||
var list []*model.Commit
|
var list []*model.Commit
|
||||||
var err = s.run("GET", path, nil, &list)
|
var err = s.run("GET", path, nil, &list)
|
||||||
return list, err
|
return list, err
|
||||||
|
|
Loading…
Reference in a new issue