Field 'timeline' doesn't exist on type 'PullRequest'

This repository was archived by the owner on Jun 21, 2023. It is now read-only.

This repository was archived by the owner on Jun 21, 2023. It is now read-only.

@jcansdale

Description

Reported by @parto:

@jcansdale it has another problem though when trying to open a PR:

Screen Shot 2020-03-17 at 12 59 52 PM

Notes

Here is the problem code:

Timeline = pr.Timeline(null, null, null, null, null).AllPages().Select(item => item.Switch<object>(when =>

See discussion here:
https://github.slack.com/archives/C44NVGUBB/p1584477659296100

@xuorig said:

We're going to be reverting that change for now while we investigate who got affected. But the field will go away soon again!

@nplasterer said:

the new timelineItems allows you to filter for just the events that you want
so you can say give me just the pr comments for the timeline

timelineItems(first: 20, itemTypes: [ISSUE_COMMENT]) 

I'll let people know when it has been changed to use timelineItems!