chore: pr feedback

This commit is contained in:
Nicolas Meienberger 2026-02-26 19:38:11 +01:00 committed by Nico
parent a2b69323b1
commit 820eabe84b

View file

@ -13,13 +13,13 @@ export const tagSnapshots = async (
tags: { add?: string[]; remove?: string[]; set?: string[] }, tags: { add?: string[]; remove?: string[]; set?: string[] },
organizationId: string, organizationId: string,
) => { ) => {
const repoUrl = buildRepoUrl(config);
const env = await buildEnv(config, organizationId);
if (snapshotIds.length === 0) { if (snapshotIds.length === 0) {
throw new Error("No snapshot IDs provided for tagging."); throw new Error("No snapshot IDs provided for tagging.");
} }
const repoUrl = buildRepoUrl(config);
const env = await buildEnv(config, organizationId);
const args: string[] = ["--repo", repoUrl, "tag", ...snapshotIds]; const args: string[] = ["--repo", repoUrl, "tag", ...snapshotIds];
if (tags.add) { if (tags.add) {