-
Notifications
You must be signed in to change notification settings - Fork 589
fix(pstack): accept PRs without checks #316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,8 @@ | ||
| import { WatcherQueryError, resolveChecks } from "./github.ts"; | ||
| import { | ||
| ChecksUnavailable, | ||
| WatcherQueryError, | ||
| resolveChecks, | ||
| } from "./github.ts"; | ||
| import type * as T from "./types.ts"; | ||
| import { nonEmpty } from "./types.ts"; | ||
| export function assessGitHubMerge(args: { | ||
|
|
@@ -108,6 +112,10 @@ export async function readSnapshot(args: { | |
| pending: pending ?? [], | ||
| github: merge.github, | ||
| }; | ||
| else if (checks.checks.length === 0 && merge.hadPreviousPassingCi) | ||
| throw new ChecksUnavailable( | ||
| "PR head has no checks yet after a previously checked commit" | ||
| ); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prior SUCCESS fail-closes empty checksMedium Severity · Logic Bug
Reviewed by Cursor Bugbot for commit 09591fc. Configure here. |
||
| else if (pending !== null) | ||
| ci = { ...base, kind: "ci-pending", failed: [], pending }; | ||
| else | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.