Skip to content

Some fields (like 'merged_at', 'base', 'head') are absent in the search results for pull requests #24491

Discussion options

You must be logged in to vote

@denis-bigbrassband-com: The GraphQL API also exposes a search field, where ISSUE is one of its supported SearchTypes.

Here’s an example query that searches for all pull requests in the github/linguist repository updated after a certain time (you can modify this example to your liking):

query {
  search(type: ISSUE, first: 10, query: "repo:github/linguist is:pr updated:>2020-07-11T23:57:00Z") {
    edges {
      node {
        ... on PullRequest {
          author {
            login
          }
          number
          mergedAt
          baseRefName
          headRefName
        }
      }
    }
  }
}
Result Set
{
  "data": {
    "search": {
      "edges": [
        {
          "node"…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment