Add Git action modal with custom commit message support
- Add a Git action confirmation modal with live commit/push/PR progress states - Accept optional `commitMessage` input and skip AI message generation when provided - Expand server and contracts tests for custom commit message handling Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
3c939e8e69
commit
36bc85f54d
5 files changed
+540
-46
No files matched your search
@@ -43,6 +43,15 @@ describe("git contracts", () => {
|
||||
expect(parsed.action).toBe("commit_push");
|
||||
});
|
||||
|
||||
it("accepts custom commit message input", () => {
|
||||
const parsed = gitRunStackedActionInputSchema.parse({
|
||||
cwd: "/tmp/repo",
|
||||
action: "commit",
|
||||
commitMessage: " chore: update git action modal ",
|
||||
});
|
||||
expect(parsed.commitMessage).toBe("chore: update git action modal");
|
||||
});
|
||||
|
||||
it("parses stacked action result with metadata", () => {
|
||||
const parsed = gitRunStackedActionResultSchema.parse({
|
||||
action: "commit_push_pr",
|
||||
|
||||
@@ -106,6 +106,7 @@ const gitPrStepStatusSchema = z.enum([
|
||||
export const gitRunStackedActionInputSchema = z.object({
|
||||
cwd: z.string().trim().min(1),
|
||||
action: gitStackedActionSchema,
|
||||
commitMessage: z.string().trim().min(1).max(10_000).optional(),
|
||||
});
|
||||
|
||||
export const gitRunStackedActionResultSchema = z.object({
|
||||
|
||||
Reference in new issue
Block a user