@@ -1182,7 +1182,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
11821182 j .log .WithFields (logrus.Fields {"operation" : "GetModelData" }).Errorf ("GenerateIdentity(%s,%s,%s,%s): %+v for %+v" , source , email , name , username , err , doc )
11831183 return
11841184 }
1185- isBotIdentity := shared .IsBotIdentity (name , username , email , ConfluenceDataSource , os .Getenv ("BOT_NAME_REGEX" ), os .Getenv ("BOT_USERNAME_REGEX" ), os .Getenv ("BOT_EMAIL_REGEX" ))
11861185 contributors := []insights.Contributor {
11871186 {
11881187 Role : insights .AuthorRole ,
@@ -1195,7 +1194,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
11951194 Username : username ,
11961195 Source : ConfluenceDataSource ,
11971196 Avatar : avatar ,
1198- IsBot : isBotIdentity ,
11991197 },
12001198 },
12011199 }
@@ -1212,7 +1210,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
12121210 j .log .WithFields (logrus.Fields {"operation" : "GetModelData" }).Errorf ("GenerateIdentity(%s,%s,%s,%s): %+v for %+v" , source , email , name , username , err , doc )
12131211 return
12141212 }
1215- isBotIdentity2 := shared .IsBotIdentity (name , username , email , ConfluenceDataSource , os .Getenv ("BOT_NAME_REGEX" ), os .Getenv ("BOT_USERNAME_REGEX" ), os .Getenv ("BOT_EMAIL_REGEX" ))
12161213 contributor := insights.Contributor {
12171214 Role : insights .AuthorRole ,
12181215 Weight : 1.0 ,
@@ -1224,7 +1221,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
12241221 Username : username ,
12251222 Source : ConfluenceDataSource ,
12261223 Avatar : avatar ,
1227- IsBot : isBotIdentity2 ,
12281224 },
12291225 }
12301226 contributors = append (contributors , contributor )
@@ -1243,7 +1239,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
12431239 j .log .WithFields (logrus.Fields {"operation" : "GetModelData" }).Errorf ("GenerateIdentity(%s,%s,%s,%s): %+v for %+v" , source , email , name , username , err , doc )
12441240 return
12451241 }
1246- isBotIdentity2 := shared .IsBotIdentity (name , username , email , ConfluenceDataSource , os .Getenv ("BOT_NAME_REGEX" ), os .Getenv ("BOT_USERNAME_REGEX" ), os .Getenv ("BOT_EMAIL_REGEX" ))
12471242 contributor := insights.Contributor {
12481243 Role : insights .AuthorRole ,
12491244 Weight : 1.0 ,
@@ -1255,7 +1250,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
12551250 Username : username ,
12561251 Source : ConfluenceDataSource ,
12571252 Avatar : avatar ,
1258- IsBot : isBotIdentity2 ,
12591253 },
12601254 }
12611255 contributors = append (contributors , contributor )
0 commit comments