1
0
mirror of https://github.com/drone/drone-cli.git synced 2026-01-22 19:11:34 +01:00

default build or show last job

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-07-28 21:32:21 +08:00
parent 4a5e8a2acb
commit b53cddb9f3
2 changed files with 2 additions and 2 deletions

@ -36,7 +36,7 @@ func buildInfo(c *cli.Context) error {
}
var number int
if buildArg == "last" {
if buildArg == "last" || len(buildArg) == 0 {
// Fetch the build number from the last build
build, err := client.BuildLast(owner, name, "")
if err != nil {

@ -39,7 +39,7 @@ func buildStart(c *cli.Context) (err error) {
buildArg := c.Args().Get(1)
var number int
if buildArg == "last" {
if buildArg == "last" || len(buildArg) == 0 {
// Fetch the build number from the last build
build, err := client.BuildLast(owner, name, "")
if err != nil {