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() } }()