Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
remove is_bot field (#22)
Browse files Browse the repository at this point in the history
Signed-off-by: Ibrahim Mbaziira <[email protected]>

Signed-off-by: Ibrahim Mbaziira <[email protected]>
  • Loading branch information
aultron authored Jan 11, 2023
1 parent 9e4b1c4 commit f10be4d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/confluence/confluence.go
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
j.log.WithFields(logrus.Fields{"operation": "GetModelData"}).Errorf("GenerateIdentity(%s,%s,%s,%s): %+v for %+v", source, email, name, username, err, doc)
return
}
isBotIdentity := shared.IsBotIdentity(name, username, email, ConfluenceDataSource, os.Getenv("BOT_NAME_REGEX"), os.Getenv("BOT_USERNAME_REGEX"), os.Getenv("BOT_EMAIL_REGEX"))
contributors := []insights.Contributor{
{
Role: insights.AuthorRole,
Expand All @@ -1195,7 +1194,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
Username: username,
Source: ConfluenceDataSource,
Avatar: avatar,
IsBot: isBotIdentity,
},
},
}
Expand All @@ -1212,7 +1210,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
j.log.WithFields(logrus.Fields{"operation": "GetModelData"}).Errorf("GenerateIdentity(%s,%s,%s,%s): %+v for %+v", source, email, name, username, err, doc)
return
}
isBotIdentity2 := shared.IsBotIdentity(name, username, email, ConfluenceDataSource, os.Getenv("BOT_NAME_REGEX"), os.Getenv("BOT_USERNAME_REGEX"), os.Getenv("BOT_EMAIL_REGEX"))
contributor := insights.Contributor{
Role: insights.AuthorRole,
Weight: 1.0,
Expand All @@ -1224,7 +1221,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
Username: username,
Source: ConfluenceDataSource,
Avatar: avatar,
IsBot: isBotIdentity2,
},
}
contributors = append(contributors, contributor)
Expand All @@ -1243,7 +1239,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
j.log.WithFields(logrus.Fields{"operation": "GetModelData"}).Errorf("GenerateIdentity(%s,%s,%s,%s): %+v for %+v", source, email, name, username, err, doc)
return
}
isBotIdentity2 := shared.IsBotIdentity(name, username, email, ConfluenceDataSource, os.Getenv("BOT_NAME_REGEX"), os.Getenv("BOT_USERNAME_REGEX"), os.Getenv("BOT_EMAIL_REGEX"))
contributor := insights.Contributor{
Role: insights.AuthorRole,
Weight: 1.0,
Expand All @@ -1255,7 +1250,6 @@ func (j *DSConfluence) GetModelData(ctx *shared.Ctx, docs []interface{}) (data m
Username: username,
Source: ConfluenceDataSource,
Avatar: avatar,
IsBot: isBotIdentity2,
},
}
contributors = append(contributors, contributor)
Expand Down

0 comments on commit f10be4d

Please sign in to comment.