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.