From fea9a8afa54328a5297b6eefe2ea2348627c18b4 Mon Sep 17 00:00:00 2001 From: Aidan Steele Date: Mon, 16 Mar 2020 16:29:13 +1100 Subject: [PATCH] =?UTF-8?q?Use=20=E2=80=9Cpush=E2=80=9D=20event=20workflow?= =?UTF-8?q?(s)=20if=20defined=20(closes=20#156)=20(#157)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index 33e753c9..e54e5a6b 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -112,6 +112,8 @@ func newRunCommand(ctx context.Context, input *Input) func(*cobra.Command, []str var eventName string if len(args) > 0 { eventName = args[0] + } else if plan := planner.PlanEvent("push"); plan != nil { + eventName = "push" } else if events := planner.GetEvents(); len(events) > 0 { // set default event type to first event // this way user dont have to specify the event.