Skip to content

Commit

Permalink
fix for email
Browse files Browse the repository at this point in the history
  • Loading branch information
danamzulescu-codefresh committed May 2, 2023
1 parent 7d42cac commit 5f88a60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/git_svc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5f88a60

Please sign in to comment.