From ab3463be19ad85d7939d6e27663f1cf7a23bda8c Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 2 Dec 2016 21:13:58 +0800 Subject: [PATCH 1/2] add DRONE_PULL_REQUEST env. Signed-off-by: Bo-Yi Wu --- main.go | 6 ++++++ plugin.go | 1 + 2 files changed, 7 insertions(+) diff --git a/main.go b/main.go index 8e0476f..54af4f2 100644 --- a/main.go +++ b/main.go @@ -152,6 +152,11 @@ func main() { Usage: "build tag", EnvVar: "DRONE_TAG", }, + cli.StringFlag{ + Name: "pull.request", + Usage: "pull request", + EnvVar: "DRONE_PULL_REQUEST", + }, cli.Float64Flag{ Name: "job.started", Usage: "job started", @@ -194,6 +199,7 @@ func run(c *cli.Context) error { Link: c.String("build.link"), Started: c.Float64("job.started"), Finished: c.Float64("job.finished"), + PR: c.String("pull.request"), }, Config: Config{ Token: c.String("token"), diff --git a/plugin.go b/plugin.go index 2139582..0d1204b 100644 --- a/plugin.go +++ b/plugin.go @@ -33,6 +33,7 @@ type ( Link string Started float64 Finished float64 + PR string } // Config for the plugin. From 0f0980300747e16391af3648f3567ba1a36544cf Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 2 Dec 2016 21:14:45 +0800 Subject: [PATCH 2/2] update to 1.6.4 and 1.7.4 testing Signed-off-by: Bo-Yi Wu --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3e42e96..264a98e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,8 @@ services: go: - 1.5.4 - - 1.6.3 - - 1.7.3 + - 1.6.4 + - 1.7.4 - tip env: