File tree Expand file tree Collapse file tree
.changes/smithy_changelog Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,9 +161,12 @@ def parse_filled_in_contents(contents: str) -> Change | None:
161161 if "type" not in parsed and line .startswith ("type:" ):
162162 parsed ["type" ] = ChangeType [line .split (":" )[1 ].strip ().upper ()]
163163 if "pull_requests" not in parsed and line .startswith ("pull requests:" ):
164- parsed ["pull_requests" ] = [
165- pr .strip () for pr in line .split (":" )[1 ].strip ().split ("," )
166- ]
164+ prs : list [str ] = []
165+ for pr in line .split (":" )[1 ].strip ().split ("," ):
166+ pr = pr .strip ()
167+ if pr :
168+ prs .append (pr )
169+ parsed ["pull_requests" ] = prs
167170 elif "description" not in parsed and line .startswith ("description:" ):
168171 # Assume that everything until the end of the file is part
169172 # of the description, so we can break once we pull in the
You can’t perform that action at this time.
0 commit comments