Skip to content

Commit

Permalink
fix: branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
fproldan committed Jul 18, 2024
1 parent 7fa1ed8 commit e99a405
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions translate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def translate_md_files():
if not os.path.exists(target_folder):
os.makedirs(target_folder)
futures.append(
executor.submit(translate_file, modified_file, target_file, target_language, translate_client)
executor.submit(
translate_file, modified_file, target_file, target_language, translate_client
)
)

for future in as_completed(futures):
Expand All @@ -110,7 +112,7 @@ def translate_md_files():
for version in version_folders:
for target_language in target_languages:
target_folder = f"docs/{version}/{target_language}"
branch_name = f"translate-{target_language}"
branch_name = f"translate-{target_language}-{pull_request_number}"
repo.git.checkout(base_branch)
repo.git.checkout("-b", branch_name)
repo.index.add([target_folder])
Expand Down

0 comments on commit e99a405

Please sign in to comment.