Skip to content

Commit

Permalink
fix: support blobs in forked repos (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Mar 3, 2022
1 parent 682ea7b commit db6b15f
Show file tree
Hide file tree
Showing 3 changed files with 1,472 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/create-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ export async function createTree(
}

if (result === null || typeof result === "undefined") return;
return valueToTreeObject(octokit, owner, repo, path, result);
return valueToTreeObject(octokit, fork, repo, path, result);
}

return valueToTreeObject(octokit, owner, repo, path, value);
return valueToTreeObject(octokit, fork, repo, path, value);
})
)
).filter(Boolean) as TreeParameter;
Expand Down
Loading

0 comments on commit db6b15f

Please sign in to comment.