Skip to content
TypeScript

test(forgejo): answer the base branch read in the skipped-checks test (#23952)

Julius Marminge49597c77db57
diff --git a/packages/source-control-forgejo/src/server/ForgejoSourceControlProvider.test.ts b/packages/source-control-forgejo/src/server/ForgejoSourceControlProvider.test.ts
index 337f9c515e6..ac037da3f9c 100644
--- a/packages/source-control-forgejo/src/server/ForgejoSourceControlProvider.test.ts
+++ b/packages/source-control-forgejo/src/server/ForgejoSourceControlProvider.test.ts
@@ -308,30 +308,32 @@ it.effect("reads Forgejo jobs that did not run as finished checks", () =>
target_url: null,
updated_at: "2026-10-11T00:00:00Z",
});
- const body = input.path.endsWith("pulls/1")
- ? {
- number: 1,
- title: "Checks",
- body: "",
- html_url: "https://forgejo.test/acme/web/pulls/1",
- user: null,
- state: "open",
- merged: false,
- head: { ref: "feature", sha: "head", repo: null },
- base: { ref: "main", sha: "base", repo: null },
- created_at: "2026-10-11T00:00:00Z",
- updated_at: "2026-10-11T00:00:00Z",
- closed_at: null,
- merged_at: null,
- labels: [],
- }
- : input.path.endsWith("page=1")
- ? [
- status("deploy", "skipped"),
- status("audit", "warning"),
- status("docs", "future-state"),
- ]
- : [];
+ const body = input.path.endsWith("branches/main")
+ ? {}
+ : input.path.endsWith("pulls/1")
+ ? {
+ number: 1,
+ title: "Checks",
+ body: "",
+ html_url: "https://forgejo.test/acme/web/pulls/1",
+ user: null,
+ state: "open",
+ merged: false,
+ head: { ref: "feature", sha: "head", repo: null },
+ base: { ref: "main", sha: "base", repo: null },
+ created_at: "2026-10-11T00:00:00Z",
+ updated_at: "2026-10-11T00:00:00Z",
+ closed_at: null,
+ merged_at: null,
+ labels: [],
+ }
+ : input.path.endsWith("page=1")
+ ? [
+ status("deploy", "skipped"),
+ status("audit", "warning"),
+ status("docs", "future-state"),
+ ]
+ : [];
return encodeJsonEffect(body).pipe(Effect.orDie, Effect.map(processOutput));
},
}),