From 5f88a605c88693a0d93c7e5dd4f804631c1d75fa Mon Sep 17 00:00:00 2001 From: danamzulescu-codefresh Date: Tue, 2 May 2023 16:09:44 -0500 Subject: [PATCH] fix for email --- src/services/git_svc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/git_svc.py b/src/services/git_svc.py index b4d292f..b28918c 100644 --- a/src/services/git_svc.py +++ b/src/services/git_svc.py @@ -56,9 +56,11 @@ def _set_gituser_cred(self) -> None: main_git_user_id = str(random.randint(1, self._git_data.git_users_count)) self._username = os.environ[f"GIT_USER{main_git_user_id}"] self._password = os.environ[f"GIT_PAT{main_git_user_id}"] + self._password = os.environ[f"GIT_EMAIL{main_git_user_id}"] # TODO: Add validations for the subprocess.run below subprocess.run(['git', 'config', '--global', 'user.name', self._username]) subprocess.run(['git', 'config', '--global', 'user.password', self._password]) + subprocess.run(['git', 'config', '--global', 'user.email', self._email]) self._logger.debug(f"Git User set: {self._username}") def produce_pull_request(self, jira_tickets: List[str]) -> None: