Milestone timeline events available on PR, but no root Milestone object

schema-request

#1

With Issues, I can query its Milestone information via

milestone {
  number
  title
  url
}

And the relationship is documented.

However, PullRequests do not have any Milestone object relationships even tho the timeline event documents (and works) with milestone/demilestone events.

Shouldn’t a milestone be available on a PR?


#2

:wave: @rnystrom,

I’ve marked this post as a schema request to add milestone to PullRequest and added it to our internal issue tracker. We’ll report back here when we have more information. Thanks!


#3

Hi @rnystrom!

You can now query for milestone information on PullRequest objects.

Thanks for your schema request!

query {
	node(id: "MDExOlB1bGxSZXF1ZXN0ODY0MTEz") {
		... on PullRequest {
			milestone {
				title
			}
		}
	}
}
{
  "data": {
    "node": {
      "milestone": {
        "title": "What's Next?"
      }
    }
  }
}

#4

Amazing!!