From d6d980f2f3f217899f27336bfe326d0b79006f05 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Wed, 15 Oct 2014 23:08:18 -0700 Subject: [PATCH 1/2] altered cli to get status of last build, without branch param --- client/commits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/commits.go b/client/commits.go index 4e17f952..0d9cc8f1 100644 --- a/client/commits.go +++ b/client/commits.go @@ -45,7 +45,7 @@ func (s *CommitService) List(host, owner, name string) ([]*model.Commit, error) // GET /api/repos/{host}/{owner}/{name}/branch/{branch} 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 err = s.run("GET", path, nil, &list) return list, err From 1ac990146a2698856ee8433ab1ee3444436884d9 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Wed, 15 Oct 2014 23:08:28 -0700 Subject: [PATCH 2/2] updated badge URL in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0657921e..d78fa2d3 100644 --- a/README.md +++ b/README.md @@ -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) [![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)