@devries-cameron20 / t3code-1 / commits / 3989f5a3b6
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(gitlab): keep scheduled pipelines pending (#25195)

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>

maria committed Oct 31, 2026 at 08:31 UTC 3989f5a3b6b48e4f6bd2f1b2d966f3fecb46afd3
2 files changed +8 -1
packages/source-control-gitlab/src/server/gitLabMergeRequestJson.test.ts
+8
@@ -210,6 +210,14 @@ describe("decodeMergeRequestDetailJson", () => {
210 expect(behind({ diverged_commits_count: null })).toBeUndefined();
211 });
212
213 + it.each(["scheduled", " SCHEDULED "])("keeps a delayed pipeline pending: %s", (status) => {
214 + const detail = expectSuccess(
215 + decodeMergeRequestDetailJson(detailJson({ head_pipeline: { status } })),
216 + );
217 +
218 + expect(detail.checks[0]?.status).toBe("pending");
219 + });
220 +
221 it("maps a pipeline waiting on a person to neutral, not failure", () => {
222 const detail = expectSuccess(
223 decodeMergeRequestDetailJson(detailJson({ head_pipeline: { status: "manual" } })),
packages/source-control-gitlab/src/server/gitLabMergeRequestJson.ts
-1
@@ -257,7 +257,6 @@ function toPipelineStatus(value: string | null | undefined): PullRequestCheckSta
257 case "skipped":
258 return "skipped";
259 case "manual":
260 - case "scheduled":
260 return "neutral";
261 default:
262 return "pending";