From 5bea2b9df2c0029b295128db2256937a952a4e03 Mon Sep 17 00:00:00 2001 From: dhalgand Date: Tue, 31 Jul 2018 11:59:52 +0200 Subject: [PATCH] [FIX] commit_author has not type with gitlab module + error when gituser not exist and user exist --- project_git_gitlab/models/gitlab.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/project_git_gitlab/models/gitlab.py b/project_git_gitlab/models/gitlab.py index ab21228..707e8b1 100644 --- a/project_git_gitlab/models/gitlab.py +++ b/project_git_gitlab/models/gitlab.py @@ -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"]: