Skip to content

Commit

Permalink
fix(ReadmeSync): incorrect object merging
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Jun 28, 2023
1 parent 5b8388d commit 4414b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/octocat/src/lib/structures/ReadmeSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export class ReadmeSync {

try {
const parsedToml = parse(toml);
const mergedConfig = _.merge(parsedToml, baseConfig);
if (typeof parsedToml.repo === "object") mergedConfig.repo = { ...baseConfig.repo, ...parsedToml.repo };
const mergedConfig = _.merge(baseConfig, parsedToml);
// if (typeof parsedToml.repo === "object") mergedConfig.repo = { ...baseConfig.repo, ...parsedToml.repo };

const zodSchema = z.object({
repo: z.object({
Expand Down

0 comments on commit 4414b76

Please sign in to comment.