Skip to content

Commit

Permalink
[FIX] commit_author has not type with gitlab module + error when gitu…
Browse files Browse the repository at this point in the history
…ser not exist and user exist
  • Loading branch information
dhalgand authored and mathben committed Jan 23, 2020
1 parent ec98574 commit 5bea2b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions project_git_gitlab/models/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ def parse_gitlab_commit(self, context, commit):
}

def parse_gitlab_commit_author(self, context, commit):
author_data = dict(
name=commit["author"]["name"], email=commit["author"]["email"]
)
author_data = dict(name=commit["author"]["name"], email=commit["author"]["email"], type=context.type)

repository_owner = self.parse_gitlab_repository_owner(context)
if repository_owner["email"] == author_data["email"]:
Expand Down

0 comments on commit 5bea2b9

Please sign in to comment.