Skip to content

Commit aba2162

Browse files
committed
fix(gitlab): drop empty entries when splitting release milestones
Trailing/extra commas in the milestones input (e.g. "v1, ,v2") would produce an empty string entry, which the GitLab API rejects.
1 parent 0dbaae7 commit aba2162

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/sim/blocks/blocks/gitlab.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,10 @@ Return ONLY the commit message - no explanations, no extra text.`,
11961196
ref: params.ref?.trim() || undefined,
11971197
releasedAt: params.releasedAt?.trim() || undefined,
11981198
milestones: params.releaseMilestones
1199-
? params.releaseMilestones.split(',').map((title: string) => title.trim())
1199+
? params.releaseMilestones
1200+
.split(',')
1201+
.map((title: string) => title.trim())
1202+
.filter(Boolean)
12001203
: undefined,
12011204
}
12021205

0 commit comments

Comments
 (0)