From ca51f92693a48f113dd7661d9ef03eef7c26a17a Mon Sep 17 00:00:00 2001 From: Salim Afiune Maya Date: Wed, 6 Jan 2021 13:25:24 +0100 Subject: [PATCH] =?UTF-8?q?ci:=20fix=20slack=20notifications=20team=20alia?= =?UTF-8?q?s=20=E2=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Salim Afiune Maya --- .circleci/config.yml | 2 +- cli/cmd/package_manifest.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fa0458b70..dcd319ce1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2.1 parameters: slack-mentions: type: string - default: 'allies' + default: 'S01JP5A3ACQ' only_for_branches: type: string default: 'master' diff --git a/cli/cmd/package_manifest.go b/cli/cmd/package_manifest.go index 377fb9d1e..58db84033 100644 --- a/cli/cmd/package_manifest.go +++ b/cli/cmd/package_manifest.go @@ -56,6 +56,10 @@ func (c *cliState) GeneratePackageManifest() (*api.PackageManifest, error) { defer func() { c.Event.DurationMs = time.Since(start).Milliseconds() if err == nil { + // if this function returns an error, most likely, + // the command will send a honeyvent with that error, + // therefore we should duplicate events and only send + // one here if there is NO error c.SendHoneyvent() } }()