Skip to content

Commit 0e2a297

Browse files
meorphismeorphis
andauthored
feat: a couple small tweaks (#202)
* feat: a couple small tweaks * lint --------- Co-authored-by: meorphis <eric@stainless.com>
1 parent 650b38c commit 0e2a297

File tree

4 files changed

+41
-4
lines changed

4 files changed

+41
-4
lines changed

dist/build.js

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/merge.js

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/preview.js

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/outcomes.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,16 @@ export function categorizeOutcome({
143143
["failure", "timed_out"].includes(checks[checkType].completed.conclusion),
144144
);
145145

146+
if (headConclusion === "timed_out" || baseConclusion === "timed_out") {
147+
return {
148+
isPending: false,
149+
conclusion: "timed_out",
150+
severity: "fatal",
151+
description: "timed out before completion",
152+
isRegression: null,
153+
};
154+
}
155+
146156
if (conclusions.fatal.includes(headConclusion)) {
147157
return {
148158
isPending: false,
@@ -245,7 +255,7 @@ export function categorizeOutcome({
245255
headConclusion === "success"
246256
? "was successful"
247257
: `had a conclusion of ${headConclusion}`,
248-
isRegression: baseConclusion ? false : null,
258+
isRegression: null,
249259
};
250260
}
251261

0 commit comments

Comments
 (0)