From a5065fdef3e4ccdddec3d4b0293bf8ed4e4e68b0 Mon Sep 17 00:00:00 2001 From: Timofei Kushnir Date: Fri, 21 May 2021 14:50:34 +0300 Subject: [PATCH 1/2] Add missing ctx values --- drone/starlark/starlark.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drone/starlark/starlark.go b/drone/starlark/starlark.go index aff0c79..fb975bf 100644 --- a/drone/starlark/starlark.go +++ b/drone/starlark/starlark.go @@ -111,6 +111,14 @@ var Command = cli.Command{ Name: "build.title", Usage: "build title", }, + cli.StringFlag{ + Name: "build.link", + Usage: "build link", + }, + cli.StringFlag{ + Name: "build.environment", + Usage: "build environment", + }, }, } @@ -159,6 +167,8 @@ func generate(c *cli.Context) error { "commit": starlark.String(c.String("build.commit")), "message": starlark.String(c.String("build.message")), "title": starlark.String(c.String("build.title")), + "link": starlark.String(c.String("build.link")), + "environment": starlark.String(c.String("build.environment")), } args := starlark.Tuple([]starlark.Value{ From 0f2fd9c259c6ad5033fdbfb0492f08c8b2ff6dd9 Mon Sep 17 00:00:00 2001 From: Timofei Kushnir Date: Tue, 22 Jun 2021 15:31:04 +0300 Subject: [PATCH 2/2] Add new ctx.build.debug option --- drone/starlark/starlark.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drone/starlark/starlark.go b/drone/starlark/starlark.go index fb975bf..28ff5cc 100644 --- a/drone/starlark/starlark.go +++ b/drone/starlark/starlark.go @@ -119,6 +119,10 @@ var Command = cli.Command{ Name: "build.environment", Usage: "build environment", }, + cli.BoolTFlag{ + Name: "build.debug", + Usage: "debug build", + }, }, } @@ -169,6 +173,7 @@ func generate(c *cli.Context) error { "title": starlark.String(c.String("build.title")), "link": starlark.String(c.String("build.link")), "environment": starlark.String(c.String("build.environment")), + "debug": starlark.Bool(c.Bool("build.debug")), } args := starlark.Tuple([]starlark.Value{