fix(file_write_branch): support file creation by routing POST/PUT on sha #1

Merged
mathias merged 3 commits from fix/file-write-branch-create into main 2026-05-06 14:44:38 +00:00
Showing only changes of commit d35ff9781c - Show all commits

View File

@@ -90,7 +90,11 @@ func TestFileWriteBranchUsesPutWhenShaProvided(t *testing.T) {
"sha":"oldsha","message":"update doc.md"
}`))
require.NoError(t, err)
require.NotNil(t, out)
var result map[string]any
require.NoError(t, json.Unmarshal(out, &result))
assert.Equal(t, "feat/existing", result["branch"])
assert.Equal(t, "cmt1", result["commit_sha"])
}
func TestFileWriteBranchUsesDefaultBaseWhenBaseEmpty(t *testing.T) {