Skip to content

Commit 3be7d47

Browse files
committed
fix: also lowercase project in parseMultiSlashIssueArg
Address Bugbot review: parseMultiSlashIssueArg was missing the same lowercase normalization applied to the other two parsing functions.
1 parent 32da363 commit 3be7d47

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/lib/arg-parsing.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,9 @@ function parseMultiSlashIssueArg(
617617
);
618618
}
619619

620+
// Lowercase project slug — Sentry slugs are always lowercase.
621+
const normalizedProject = project.toLowerCase();
622+
620623
// Remainder with dash: "org/project/PROJ-G" — split remainder on last dash
621624
if (remainder.includes("-")) {
622625
const lastDash = remainder.lastIndexOf("-");
@@ -626,14 +629,19 @@ function parseMultiSlashIssueArg(
626629
return {
627630
type: "explicit",
628631
org,
629-
project,
632+
project: normalizedProject,
630633
suffix: `${subProject}-${suffix}`.toUpperCase(),
631634
};
632635
}
633636
}
634637

635638
// "org/project/101149101" or "org/project/G" — treat remainder as suffix
636-
return { type: "explicit", org, project, suffix: remainder.toUpperCase() };
639+
return {
640+
type: "explicit",
641+
org,
642+
project: normalizedProject,
643+
suffix: remainder.toUpperCase(),
644+
};
637645
}
638646

639647
function parseAfterSlash(

0 commit comments

Comments
 (0)