From 740191bf1d7e572097697fece5e86c1eddbabf64 Mon Sep 17 00:00:00 2001 From: arhont375 Date: Wed, 2 May 2018 17:24:39 +0900 Subject: [PATCH] Allow usage of this plugin during pull request Hi, All commits that belong to pull request will have such build event, therefore we will see only help message instead of deployment. --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 3b66d66..8500d68 100644 --- a/plugin.go +++ b/plugin.go @@ -138,7 +138,7 @@ func setHelmCommand(p *Plugin) { setDeleteCommand(p) default: switch os.Getenv("DRONE_BUILD_EVENT") { - case "push", "tag", "deployment": + case "push", "tag", "deployment", "pull_request": setUpgradeCommand(p) case "delete": setDeleteCommand(p)