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:
parent
4a5e8a2acb
commit
b53cddb9f3
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user