Files
openclaw/scripts/ci-changed-scope.d.mts
Peter Steinberger 067635cb51 fix(ui): prevent generated locale rebase conflicts (#109393)
* ci(ui): make locale refresh bot-owned

* test(ui): keep locale gate coverage scoped

* fix(ci): preserve generated PR merge policy

* fix(ci): wait for generated PR head convergence

* fix(ci): retry transient guard API failures

* fix(ci): enforce locale isolation across CI events

* fix(ci): harden generated PR publication

* fix(ci): validate release gate merge tree

* fix(ci): allow trusted main locale output
2026-07-16 18:48:20 -07:00

61 lines
1.7 KiB
TypeScript

export type ChangedScope = {
runNode: boolean;
runMacos: boolean;
runIosBuild: boolean;
runAndroid: boolean;
runWindows: boolean;
runSkillsPython: boolean;
runChangedSmoke: boolean;
runControlUiI18n: boolean;
runUiTests: boolean;
};
export type InstallSmokeScope = {
runFastInstallSmoke: boolean;
runFullInstallSmoke: boolean;
};
export type NodeFastScope = {
runFastOnly: boolean;
runPluginContracts: boolean;
runCiRouting: boolean;
};
export type ChangedScopeArgs = {
base: string;
head: string;
mergeHeadFirstParent: boolean;
};
export class ControlUiGeneratedArtifactsMixedError extends Error {}
export function assertControlUiGeneratedArtifactsIsolated(
changedPaths: string[],
branchName?: string,
): void;
export function resolveAllowedGeneratedMixBranch(
env?: Readonly<Record<string, string | undefined>>,
branchName?: string,
): string;
export function shouldStrictControlUiI18n(changedPaths: string[] | null): boolean;
export function detectChangedScope(changedPaths: string[]): ChangedScope;
export function shouldRunNativeI18n(changedPaths: string[]): boolean;
export function detectNodeFastScope(changedPaths: string[]): NodeFastScope;
export function detectInstallSmokeScope(changedPaths: string[]): InstallSmokeScope;
export function listChangedPaths(
base: string,
head?: string,
cwd?: string,
preferMergeHeadFirstParent?: boolean,
): string[];
export function writeGitHubOutput(
scope: ChangedScope,
outputPath?: string,
installSmokeScope?: InstallSmokeScope,
nodeFastScope?: NodeFastScope,
runNativeI18n?: boolean,
changedPaths?: string[] | null,
): void;
export function parseArgs(argv: string[]): ChangedScopeArgs;