feat(workflow): install a repository's declared tooling before its gate

This commit is contained in:
sam committed 2026-10-21 23:11:16 +11:00
1 parent 3f400767ad
commit cf13f60ee6
10 files changed
+207 -3

No files matched your search

+6 -1
View File
@@ -49,6 +49,7 @@ interface Repo {
base: string;
ecosystem: string;
gate: string[][] | null;
tooling: string[][] | null;
preflight: string[][] | null;
protect: string[] | null;
test_glob: string;
@@ -88,7 +89,7 @@ function addRepo() {
if (!draft.value || !owner || !name) return;
draft.value.value ??= [];
(draft.value.value as Repo[]).push({
owner, name, connection: "", base: "main", ecosystem: "go", gate: [], preflight: null, protect: null,
owner, name, connection: "", base: "main", ecosystem: "go", gate: [], tooling: null, preflight: null, protect: null,
test_glob: "", persistent_storage: false, max_retries: 0, allow_concurrent: false,
});
newRepo.value = "";
@@ -173,6 +174,10 @@ async function checkAccess(repo:Repo):Promise<void>{
<CommandListEditor v-model="repo.gate" label="Gate" empty-text="No gate." />
<DraftHint :kind="KIND" :path="`${i}.gate`" />
</SettingRow>
<SettingRow label="Tooling" hint="Installs the gate needs; runs before it.">
<CommandListEditor v-model="repo.tooling" label="Tooling" empty-text="Nothing to install." />
<DraftHint :kind="KIND" :path="`${i}.tooling`" />
</SettingRow>
<SettingRow label="Preflight" hint="Empty: ecosystem default.">
<CommandListEditor v-model="repo.preflight" label="Preflight" empty-text="Ecosystem default." />
<DraftHint :kind="KIND" :path="`${i}.preflight`" />