Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(pull-request): prioritize failed checks #12274

Mergedakash3444(GitHub profile, opens in a new tab)merged 9 commits intomain fromrefs/pull/12274/headmerged by juliusmarminge View on GitHub

Showing 10 changed files with 27 additions and 5 deletions (loading 7).

x
0 of 10 viewed, 10 left
24 additions and 3 deletionspackages/source-control-bitbucket/src/server/BitbucketPullRequestApi.test.tsModified
View file
@@ -568,18 +568,39 @@
const next = "https://api.bitbucket.org/2.0/statuses?page=2";
mockedRequest
.mockReturnValueOnce(
- Effect.succeed(response(valuePage([{ name: "Build", state: "SUCCESSFUL" }], next))),
+ Effect.succeed(
+ response(
+ valuePage(
+ [
+ { name: "Build", state: "SUCCESSFUL" },
+ { name: "Tests", state: "STOPPED" },
+ ],
+ next,
+ ),
+ ),
+ ),
.mockReturnValueOnce(
- Effect.succeed(response(valuePage([{ name: "Lint", state: "FAILED" }]))),
+ Effect.succeed(
+ response(
+ valuePage([
+ { name: "Lint", state: "FAILED" },
+ { name: "Deploy", state: "INPROGRESS" },
+ { name: "Audit", state: "FAILED" },
+ ]),
+ ),
+ ),
const api = yield* BitbucketPullRequestApi.BitbucketPullRequestApi;