add DRONE_PULL_REQUEST env.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
d31365c444
commit
ab3463be19
6
main.go
6
main.go
@ -152,6 +152,11 @@ func main() {
|
|||||||
Usage: "build tag",
|
Usage: "build tag",
|
||||||
EnvVar: "DRONE_TAG",
|
EnvVar: "DRONE_TAG",
|
||||||
},
|
},
|
||||||
|
cli.StringFlag{
|
||||||
|
Name: "pull.request",
|
||||||
|
Usage: "pull request",
|
||||||
|
EnvVar: "DRONE_PULL_REQUEST",
|
||||||
|
},
|
||||||
cli.Float64Flag{
|
cli.Float64Flag{
|
||||||
Name: "job.started",
|
Name: "job.started",
|
||||||
Usage: "job started",
|
Usage: "job started",
|
||||||
@ -194,6 +199,7 @@ func run(c *cli.Context) error {
|
|||||||
Link: c.String("build.link"),
|
Link: c.String("build.link"),
|
||||||
Started: c.Float64("job.started"),
|
Started: c.Float64("job.started"),
|
||||||
Finished: c.Float64("job.finished"),
|
Finished: c.Float64("job.finished"),
|
||||||
|
PR: c.String("pull.request"),
|
||||||
},
|
},
|
||||||
Config: Config{
|
Config: Config{
|
||||||
Token: c.String("token"),
|
Token: c.String("token"),
|
||||||
|
Loading…
Reference in New Issue
Block a user