fix: ensure string conversion for list elements

This commit is contained in:
joosomi
2025-05-09 21:33:42 +09:00
parent 6062c99c47
commit 57eaba0e75

View File

@ -507,7 +507,7 @@ class PRDescription:
ai_type = self.data.get('type')
if ai_type and not re.search(r'<!--\s*pr_agent:type\s*-->', body):
if isinstance(ai_type, list):
pr_type = ', '.join(ai_type)
pr_type = ', '.join(str(t) for t in ai_type)
else:
pr_type = ai_type
pr_type = f"{ai_header}{pr_type}"