From 5ed68f0f6b192cffb1bd4d1790360583d08018bb Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 21 Feb 2020 23:16:28 +0000 Subject: fix(ops/besadii): Only trigger builds for branches --- ops/besadii/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ops') diff --git a/ops/besadii/main.go b/ops/besadii/main.go index 0241eb84491c..460eddf26538 100644 --- a/ops/besadii/main.go +++ b/ops/besadii/main.go @@ -143,10 +143,14 @@ func parseRefUpdates() ([]refUpdate, error) { return nil, fmt.Errorf("invalid ref update: '%s'", line) } + if !strings.HasPrefix(fragments[2], "refs/heads/") { + continue + } + updates = append(updates, refUpdate{ old: fragments[0], new: fragments[1], - name: fragments[2], + name: strings.TrimPrefix(fragments[2], "refs/heads/"), }) } -- cgit 1.4.1