Rebuild.
Testing / prettier (push) Failing after 2m30s
Testing / unit-test (20.x) (push) Failing after 4m1s
Testing / e2e-test (20.x) (push) Failing after 5m53s

This commit is contained in:
2026-01-04 13:26:16 -05:00
parent 8a8989e92a
commit 22bedf8d07
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -90203,7 +90203,7 @@ var repo = context2.repo.repo;
async function getCommitDiff(commitSha) {
if (PLATFORM === "gitea" || PLATFORM === "forgejo") {
try {
const diffResponse2 = await giteaClient.repository.repoDownloadCommitDiffOrPatch({
const diffResponse2 = await giteaClient.repoDownloadCommitDiffOrPatch({
owner,
repo,
sha: commitSha,
+8 -8
View File
@@ -41,13 +41,12 @@ type Diff = string;
async function getCommitDiff(commitSha: string): Promise<{ sha: SHA; diff: Diff }> {
if (PLATFORM === 'gitea' || PLATFORM === 'forgejo') {
try {
const diffResponse =
await giteaClient.repository.repoDownloadCommitDiffOrPatch({
owner,
repo,
sha: commitSha,
diffType: 'diff',
});
const diffResponse = await giteaClient.repoDownloadCommitDiffOrPatch({
owner,
repo,
sha: commitSha,
diffType: 'diff',
});
return {
sha: commitSha,
@@ -59,7 +58,7 @@ async function getCommitDiff(commitSha: string): Promise<{ sha: SHA; diff: Diff
}
}
// GitHub fallback remains correct
// GitHub path unchanged
const diffResponse = await octokit.request<string>(
'GET /repos/{owner}/{repo}/commits/{ref}',
{
@@ -75,6 +74,7 @@ async function getCommitDiff(commitSha: string): Promise<{ sha: SHA; diff: Diff
return { sha: commitSha, diff: diffResponse.data };
}
interface DiffAndSHA {
sha: SHA;
diff: Diff;