fixed generate_branch_name v2
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s

This commit is contained in:
Jon Michael Aanes 2025-04-13 16:54:24 +02:00
parent 0d26bd7b06
commit 1d4cec29ed

View File

@ -25,7 +25,7 @@ def generate_branch_name(issue_number: str, issue_title: str) -> str:
the text is lowercased, and spaces are replaced with dashes.
"""
sanitized = re.sub(r"[^0-9a-zA-Z ]+", "", issue_title)
parts = ['issue', issue_number, *sanitized.lower().split()]
parts = ['issue', str(issue_number), *sanitized.lower().split()]
return "-".join(parts)
logger = logging.getLogger(__name__)