Update pr_agent/git_providers/local_git_provider.py

Co-authored-by: Ori Kotek <orikotek@gmail.com>
This commit is contained in:
Patryk Kowalski (deepsense.ai) 2023-07-24 16:46:36 +02:00 committed by GitHub
parent 8e6518f071
commit d4cbcc465c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ class LocalGitProvider(GitProvider):
self.head_branch_name = self.repo.head.ref.name self.head_branch_name = self.repo.head.ref.name
self.branch_name = branch_name self.branch_name = branch_name
self.tmp_branch_name = f'pr_agent_{uuid.uuid4()}' self.tmp_branch_name = f'pr_agent_{uuid.uuid4()}'
self.prepare_repo() self._prepare_repo()
self.diff_files = None self.diff_files = None
self.pr = PullRequestMimic(self.get_pr_title(), self.get_diff_files()) self.pr = PullRequestMimic(self.get_pr_title(), self.get_diff_files())
self.description_path = settings.get('local.description_path') \ self.description_path = settings.get('local.description_path') \