From 1b2a30e7a09be82c1c8ebf8d2d29d8f6729f8262 Mon Sep 17 00:00:00 2001 From: Nicolas Bock Date: Wed, 31 Jul 2024 11:39:04 -0600 Subject: [PATCH] Add option to set max number of comment chunks Closes: https://github.com/canonical/athena-core/issues/158 Closes: SET-934 Signed-off-by: Nicolas Bock --- pkg/config/config.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 555894d..7aa4503 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -72,12 +72,13 @@ func NewProcessor() Processor { } type SalesForce struct { - Endpoint string `yaml:"endpoint"` - Username string `yaml:"username"` - Password string `yaml:"password"` - SecurityToken string `yaml:"security-token"` - MaxCommentLength int `yaml:"max-comment-length"` - EnableChatter bool `yaml:"enable-chatter"` + Endpoint string `yaml:"endpoint"` + Username string `yaml:"username"` + Password string `yaml:"password"` + SecurityToken string `yaml:"security-token"` + MaxCommentLength int `yaml:"max-comment-length"` + MaxNumberCommentChunks int `yaml:"max-number-comment-chunks"` + EnableChatter bool `yaml:"enable-chatter"` } func NewSalesForce() SalesForce {