feat: add gitea actions cicd poc plan
This commit is contained in:
+17
-4
@@ -1,13 +1,26 @@
|
||||
// SPEC: PJ2026-01060703 CI/CD branch follower draft-2026-07-03-p0-branch-follower.
|
||||
// Responsibility: thin CI/CD top-level route entry; branch-follower logic lives in responsibility modules.
|
||||
// SPEC: PJ2026-01060703 CI/CD branch follower and GH-1548 Gitea Actions POC.
|
||||
// Responsibility: thin CI/CD top-level route entry; subcommand logic lives in responsibility modules.
|
||||
import type { UniDeskConfig } from "./config";
|
||||
import { renderMachine } from "./cicd-render";
|
||||
import type { RenderedCliResult } from "./output";
|
||||
import { cicdHelp as branchFollowerHelp, runCicdCommand as runBranchFollowerCommand } from "./cicd-branch-follower";
|
||||
import { cicdGiteaActionsPocHelp, runGiteaActionsPocCommand } from "./cicd-gitea-actions-poc";
|
||||
|
||||
export function cicdHelp(): unknown {
|
||||
return branchFollowerHelp();
|
||||
return {
|
||||
command: "cicd branch-follower|gitea-actions-poc",
|
||||
output: "text by default for subcommands; top-level help is json",
|
||||
subcommands: [
|
||||
branchFollowerHelp(),
|
||||
cicdGiteaActionsPocHelp(),
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
export async function runCicdCommand(config: UniDeskConfig | null, args: string[]): Promise<RenderedCliResult> {
|
||||
return await runBranchFollowerCommand(config, args);
|
||||
const top = args[0];
|
||||
if (top === undefined || top === "help" || top === "--help" || top === "-h") return renderMachine("cicd", cicdHelp(), "json");
|
||||
if (top === "branch-follower") return await runBranchFollowerCommand(config, args);
|
||||
if (top === "gitea-actions-poc" || top === "gitea-builder-poc") return await runGiteaActionsPocCommand(config, args.slice(1), top);
|
||||
throw new Error("cicd usage: cicd branch-follower|gitea-actions-poc");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user