The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 09:30 UTC
fix(gitlab): canceling pipelines no longer show as pending (#21543)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: maria-rcks <maria@kuuro.net>
MarcoDotIO committed
Oct 31, 2026 at 22:20 UTC
0ed7b7252e2d2fc302e44caa9b3050df9f8b7b41
2 files changed
+9
-1
packages/source-control-gitlab/src/server/gitLabMergeRequestJson.test.ts
+8
@@ -148,6 +148,14 @@ describe("decodeMergeRequestDetailJson", () => {
148
]);
149
});
150
151
+ it.each(["canceled", "canceling"])("maps a %s pipeline to cancelled", (status) => {
152
+ const detail = expectSuccess(
153
+ decodeMergeRequestDetailJson(detailJson({ head_pipeline: { status } })),
154
+ );
155
+
156
+ expect(detail.checks[0]?.status).toBe("cancelled");
157
+ });
158
+
159
it("reads an uncounted change set as its floor", () => {
160
const detail = expectSuccess(
161
decodeMergeRequestDetailJson(detailJson({ changes_count: "1000+" })),
packages/source-control-gitlab/src/server/gitLabMergeRequestJson.ts
+1
-1
@@ -262,7 +262,7 @@ function toPipelineStatus(value: string | null | undefined): PullRequestCheckSta
262
case "failed":
263
return "failure";
264
case "canceled":
265
- case "cancelling":
265
+ case "canceling":
266
return "cancelled";
267
case "skipped":
268
return "skipped";