fixed generate_branch_name v2
This commit is contained in:
parent
0d26bd7b06
commit
1d4cec29ed
|
@ -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__)
|
||||
|
|
Loading…
Reference in New Issue
Block a user