Skip to content
Français

ScriptedCommit

import type { ScriptedCommit } from "@elie-laloum/outpost/testing";
  • messageRequired
    string
    Nonempty commit message. Test commits use Outpost Test identity, with signing and host hooks disabled.
  • filesRequired
    Readonly<Record<string, string | null>>
    Nonempty map of repository-relative paths to UTF-8 contents; null deletes an existing file. Traversal, .git, .outpost and symlinks are refused. Only these paths enter the commit; separately staged work remains staged.
export interface ScriptedCommit {
  readonly message: string;
  readonly files: Readonly<Record<string, string | null>>;
}