Require release versions for script uploads
CI / checks (push) Successful in 5m26s

This commit is contained in:
2026-10-12 18:46:57 -04:00
parent ffda04f276
commit 2f52dcb1ef
50 changed files with 871 additions and 113 deletions
+5 -1
View File
@@ -261,7 +261,11 @@
>
<td class="files"
>{#if beta.scripts.length === 1}{beta.scripts[0].name}
<span>{artifactVersionLabel(beta.scripts[0].version)}</span
<span
>{artifactVersionLabel(
beta.scripts[0].version,
beta.scripts[0].kind
)}</span
>{:else}{beta.scripts.length} files{/if}</td
>
<td
+7 -3
View File
@@ -620,7 +620,7 @@
$page.url
)}>{file.name}</a
>
· {artifactVersionLabel(file.version)}</summary
· {artifactVersionLabel(file.version, file.kind)}</summary
>
<p><code>{file.target_rel_path}</code></p>
{#if file.version}<p class="muted">
@@ -661,7 +661,10 @@
<a
href={`/api/betas/${id}/revisions/${item.revision}/files/${file.script_id}`}
download={file.path.split('/').pop()}
>{file.name} · {artifactVersionLabel(file)}</a
>{file.name} · {artifactVersionLabel(
file,
file.kind
)}</a
><code>{file.path}</code><span
>{file.sha256.slice(0, 12)}</span
>
@@ -744,7 +747,8 @@
<div class="file-list">
{#each preview.files as file}<details open>
<summary
>{file.name} · {artifactVersionLabel(file)} · {file.servers.length} servers</summary
>{file.name} · {artifactVersionLabel(file, file.kind)} · {file.servers
.length} servers</summary
>
<p><code>{file.path}</code> · {file.scope} · SHA {file.sha256.slice(0, 12)}</p>
<ul>
+10 -5
View File
@@ -712,10 +712,14 @@
? 'Loading versions…'
: 'Choose a version'}</option
>{#each versionsFor(pick) as version}<option value={version.id}
>{artifactVersionLabel(version)} · {version.sha256.slice(
0,
8
)} · {version.state.replaceAll('-', ' ')}</option
>{artifactVersionLabel(
version,
scripts.find((file) => file.id === pick.scriptId)
?.kind
)} · {version.sha256.slice(0, 8)} · {version.state.replaceAll(
'-',
' '
)}</option
>{/each}</Select
></Field
>
@@ -926,7 +930,8 @@
?.name}</strong
>
· {artifactVersionLabel(
versionsFor(pick).find((v) => v.id === pick.versionId)
versionsFor(pick).find((v) => v.id === pick.versionId),
scripts.find((file) => file.id === pick.scriptId)?.kind
)} · {versionsFor(pick)
.find((v) => v.id === pick.versionId)
?.sha256.slice(