Repository navigation
fix: accept null issue_url in prescreen callback validation - #825
Merged
neuromechanist merged 1 commit intoJun 27, 2026
Merged
neuromechanist merged 1 commit into
neuromechanist merged 1 commit into
Conversation
The run-prescreen workflow sends issue_url: null when ISSUE_URL="" via jq (if $iu=="" then null else $iu end). The server validation checked `b.issue_url !== undefined` but not `b.issue_url !== null`, so null triggered 'issue_url must be a string' and every prescreen callback returned 400. The DB handler already handles null correctly (`body.issue_url || null`), so accepting null here is safe and consistent with the field being truly optional. Fixes: all prescreen callbacks failing with HTTP 400 since nemarOrg#756 advisory change.
5 tasks
Contributor
Author
CI failure analysis — fork secrets, not a code bugtl;dr: Root causeThis PR is submitted from a fork (
These exact jobs pass on every Tests that actually cover this change
What to doEither:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The prescreen workflow (
nemarDatasets/.github) setsISSUE_URL=""(advisory mode since #756) and the jq expression converts this tonull:Server validation at
validatePrescreenCallbackBody:null !== undefinedis true, andtypeof null === "object"— so every prescreen callback returns HTTP 400 since #756. No prescreen results reach the Worker.Fix
Accept
nullas equivalent to the field being absent (undefined), since:issue_url?: string(optional)const issueUrl = body.issue_url || null— null is handled correctlyAlso adds a test case for
nullto match the existing test for non-string numbers.Related
A companion PR fixing the workflow to omit the field instead of sending null: nemarDatasets/.github#60
Either fix alone is sufficient; both together are belt-and-suspenders.