Skip to content

Commit

Permalink
create-branch: ignore null previous answers
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Nov 12, 2023
1 parent dedbeb7 commit 7d32004
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/create_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def _read_prev_branch_answers(prev_branch: str, answers: Dict[str, str]) -> None
for question in COPIER_ANSWERS_TO_CARRY_OVER:
if question not in prev_branch_answers:
continue
if prev_branch_answers[question] is None:
continue
answers[question] = prev_branch_answers[question]


Expand Down Expand Up @@ -70,6 +72,7 @@ def main(new_branch, copier_template, copier_template_vcs_ref, repos, prev_branc
"odoo_version": float(new_branch),
"repo_slug": repo,
"repo_name": repo,
"repo_description": "TODO: add repo description",
"ci": "GitHub",
}
if prev_branch:
Expand Down

0 comments on commit 7d32004

Please sign in to comment.