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

Commit 60e128f

Browse files
Add check bot email (#52)
* add check bot email Signed-off-by: Ayman <[email protected]> * clean up Signed-off-by: Ayman <[email protected]> Signed-off-by: Ayman <[email protected]> Co-authored-by: Ayman <[email protected]>
1 parent 340fa1f commit 60e128f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cmd/git/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ func (j *DSGit) GetModelData(ctx *shared.Ctx, docs []interface{}) []git.CommitCr
12801280
if err != nil {
12811281
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))
12821282
}
1283-
isBotIdentity := shared.IsBotIdentity(name)
1283+
isBotIdentity := shared.IsBotIdentity(name, email)
12841284
commitRole.Identity = user.UserIdentityObjectBase{
12851285
ID: userID,
12861286
Email: email,

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/LF-Engineering/insights-datasource-git
33
go 1.17
44

55
require (
6-
github.com/LF-Engineering/insights-datasource-shared v1.5.13-0.20220823221255-792e9bbc15c7
6+
github.com/LF-Engineering/insights-datasource-shared v1.5.17
77
github.com/LF-Engineering/lfx-event-schema v0.1.33
88
github.com/aws/aws-lambda-go v1.27.1
99
github.com/aws/aws-sdk-go v1.42.25

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
2-
github.com/LF-Engineering/insights-datasource-shared v1.5.13-0.20220823221255-792e9bbc15c7 h1:/hH1GY0sZ537pch+ttGuaAfTtXHmeKwQKj1FyN2TxEM=
3-
github.com/LF-Engineering/insights-datasource-shared v1.5.13-0.20220823221255-792e9bbc15c7/go.mod h1:ZQCRAJNyizhBemQDSjqm14G2MPkOJbRzCPfjwFhYKy4=
2+
github.com/LF-Engineering/insights-datasource-shared v1.5.17 h1:YWndN11EW3743oT4mi+cOqMqEe2i2PNJooSgV5YBYmM=
3+
github.com/LF-Engineering/insights-datasource-shared v1.5.17/go.mod h1:ZQCRAJNyizhBemQDSjqm14G2MPkOJbRzCPfjwFhYKy4=
44
github.com/LF-Engineering/lfx-event-schema v0.1.14/go.mod h1:CfFIZ4mwzo88umf5+KxDQEzqlVkPG7Vx8eLK2oDfWIs=
55
github.com/LF-Engineering/lfx-event-schema v0.1.33 h1:5Yk20tPkPbyOKEckcEF87qEQtl1H8l6TyA9wjKi+cl0=
66
github.com/LF-Engineering/lfx-event-schema v0.1.33/go.mod h1:CfFIZ4mwzo88umf5+KxDQEzqlVkPG7Vx8eLK2oDfWIs=

0 commit comments

Comments
 (0)