[wp-trac] [WordPress Trac] #64175: The `in:body` query does not exist in GitHub GraphQL
WordPress Trac
noreply at wordpress.org
Fri Oct 31 00:48:31 UTC 2025
#64175: The `in:body` query does not exist in GitHub GraphQL
------------------------------+-----------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.9
Component: Build/Test Tools | Version:
Severity: normal | Keywords: has-patch
Focuses: |
------------------------------+-----------------------
The Cleanup Pull Request workflow in GitHub Actions runs on every `push`
event and searches for pull requests that mention any tickets noted as
`Fixed` in the commit message.
Recently, there have been several pull requests that were closed
incorrectly. It appears that a reference to the fixed ticket numbers
''anywhere'' on the pull request was being detected, not just in the body.
According to Copilot, this is expected.
{{{
That’s expected — the in:body qualifier is part of GitHub’s search syntax
used in the web UI and REST Search API, but it’s not a built‑in filter in
the GraphQL schema.
In GraphQL, there’s no direct equivalent to in:body as a single qualifier.
Instead, you need to explicitly request the body field of the PullRequest
object and then filter it yourself in your client code, or use the search
connection in GraphQL with a query string that includes in:body.
}}}
Instead of using a qualifier to control limit where the search can match,
the `bodyText` needs to be returned and searched manually to confirm a
match before closing the pull request.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64175>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list