28 lines
675 B
TypeScript
28 lines
675 B
TypeScript
import type { PushPermission, ShellPermission } from "../external.ts";
|
|
|
|
export interface RepoSettings {
|
|
model: string | null;
|
|
setupScript: string | null;
|
|
postCheckoutScript: string | null;
|
|
prepushScript: string | null;
|
|
stopScript: string | null;
|
|
push: PushPermission;
|
|
shell: ShellPermission;
|
|
prApproveEnabled: boolean;
|
|
modeInstructions: Record<string, string>;
|
|
}
|
|
|
|
export function defaultRepoSettings(): RepoSettings {
|
|
return {
|
|
model: null,
|
|
setupScript: null,
|
|
postCheckoutScript: null,
|
|
prepushScript: null,
|
|
stopScript: null,
|
|
push: "restricted",
|
|
shell: "restricted",
|
|
prApproveEnabled: false,
|
|
modeInstructions: {},
|
|
};
|
|
}
|