Before and after views are flipped (#95)

* Before and after view are flipped
Fixes #94

* Test e2e artifacts upload

* Revert "Test e2e artifacts upload"

This reverts commit bcecfd5fc2aa22e108a83a00e3f33f698b4ab294.

* Prettier
This commit is contained in:
Pierre Jacquier
2023-04-14 15:49:03 -04:00
committed by GitHub
parent f79dfda9c5
commit 690343e642

View File

@ -100,20 +100,14 @@ export async function getFileDiff(
if (status === 'modified') {
const beforeBlob = await downloadFile(
github,
owner,
repo,
sha,
filename
)
const before = await convert(kittycad, beforeBlob, extension)
const afterBlob = await downloadFile(
github,
owner,
repo,
parentSha,
filename
)
const before = await convert(kittycad, beforeBlob, extension)
const afterBlob = await downloadFile(github, owner, repo, sha, filename)
const after = await convert(kittycad, afterBlob, extension)
return { before, after }
}