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

Commit ceb3823

Browse files
fix bot identity issue (#58)
Signed-off-by: Ayman <[email protected]> Signed-off-by: Ayman <[email protected]> Co-authored-by: Ayman <[email protected]>
1 parent b852b09 commit ceb3823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/git/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ func (j *DSGit) GetModelData(ctx *shared.Ctx, docs []interface{}) []git.CommitCr
12831283
j.log.WithFields(logrus.Fields{"operation": "GetModelData"}).Error(fmt.Errorf("GenerateIdentity source: %s, email: %s, name:%s, username:%s. error: %+v", j.RepositorySource, email, name, username, err))
12841284
}
12851285

1286-
isBotIdentity := shared.IsBotIdentity(name, username, email, GitConnector, os.Getenv("BOT_NAME_REGEX"), os.Getenv("BOT_USERNAME_REGEX"), os.Getenv("BOT_EMAIL_REGEX"))
1286+
isBotIdentity := shared.IsBotIdentity(name, username, email, GitDataSource, os.Getenv("BOT_NAME_REGEX"), os.Getenv("BOT_USERNAME_REGEX"), os.Getenv("BOT_EMAIL_REGEX"))
12871287
commitRole.Identity = user.UserIdentityObjectBase{
12881288
ID: userID,
12891289
Email: email,

0 commit comments

Comments
 (0)