Open
Description
What happened?
It looks like there's an issue with the isRequired
field under repo -> pullRequests -> nodes -> statusCheckRollup -> contexts -> nodes -> isRequired
the field requires params, but they should be inferred in this context.
example query:
query ($var1: String!, $var2: String!) {
repo: repository(owner: $var1, name: $var2) {
pullRequests(first: 4, states: [OPEN]) {
totalCount
nodes {
title
statusCheckRollup {
contexts(first: 50) {
nodes {
... on StatusContext {
id
description
# params are required here, but in this context the id of the PR is known
isRequired
}
}
}
}
}
}
}
}
Versions
octokit: 4.0.13
node: v18.17.1
Relevant log output
{
"type": "UNPROCESSABLE",
"path": [
"repository",
"pullRequests",
"nodes",
4,
"statusCheckRollup",
"contexts",
"nodes",
2,
"isRequired"
],
"locations": [
{
"line": 19,
"column": 9
}
],
"message": "A pull request ID or pull request number is required."
}
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Type
Projects
Status
🔥 Backlog