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

Commit

Permalink
Sync with isbotidentity changes (#55)
Browse files Browse the repository at this point in the history
* sync with shared isbotidentity functionality changes

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]>
  • Loading branch information
khalifapro and enkhalifapro authored Oct 31, 2022
1 parent b89407c commit 2a6bccb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cmd/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,8 @@ func (j *DSGit) GetModelData(ctx *shared.Ctx, docs []interface{}) []git.CommitCr
if err != nil {
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))
}
isBotIdentity := shared.IsBotIdentity(name, email)

isBotIdentity := shared.IsBotIdentity(name, username, email, GitConnector, os.Getenv("BOT_NAME_REGEX"), os.Getenv("BOT_USERNAME_REGEX"), os.Getenv("BOT_EMAIL_REGEX"))
commitRole.Identity = user.UserIdentityObjectBase{
ID: userID,
Email: email,
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/LF-Engineering/insights-datasource-git
go 1.17

require (
github.com/LF-Engineering/insights-datasource-shared v1.5.17
github.com/LF-Engineering/insights-datasource-shared v1.5.18-0.20221031155159-425447b99760
github.com/LF-Engineering/lfx-event-schema v0.1.33
github.com/aws/aws-lambda-go v1.27.1
github.com/aws/aws-sdk-go v1.42.25
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/LF-Engineering/insights-datasource-shared v1.5.17 h1:YWndN11EW3743oT4mi+cOqMqEe2i2PNJooSgV5YBYmM=
github.com/LF-Engineering/insights-datasource-shared v1.5.17/go.mod h1:ZQCRAJNyizhBemQDSjqm14G2MPkOJbRzCPfjwFhYKy4=
github.com/LF-Engineering/insights-datasource-shared v1.5.18-0.20221031155159-425447b99760 h1:mz4lyh+rx+HjDatpc8gc1viGaN2snN8OkGpu2igYTDg=
github.com/LF-Engineering/insights-datasource-shared v1.5.18-0.20221031155159-425447b99760/go.mod h1:9DmFQbC8nnm1C7k+/tDo3Rmqzzx7AzmhPBlFouXaBZ8=
github.com/LF-Engineering/lfx-event-schema v0.1.14/go.mod h1:CfFIZ4mwzo88umf5+KxDQEzqlVkPG7Vx8eLK2oDfWIs=
github.com/LF-Engineering/lfx-event-schema v0.1.33 h1:5Yk20tPkPbyOKEckcEF87qEQtl1H8l6TyA9wjKi+cl0=
github.com/LF-Engineering/lfx-event-schema v0.1.33/go.mod h1:CfFIZ4mwzo88umf5+KxDQEzqlVkPG7Vx8eLK2oDfWIs=
Expand Down

0 comments on commit 2a6bccb

Please sign in to comment.