Repository navigation
Review comments are missing in description view on GH Enterprise #908
Description
Activity
- addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityIssue identified as high-priority
on Feb 1, 2019 - added a commit that references this issue
on Feb 1, 2019 RMacfarlane commented
on Feb 6, 2019 ContributorMore actionsfixed by #910
Rachel Macfarlane (@RMacfarlane), Is adding comments in a pending review for Github Enterprise not supported?
I tried to play around to make it work, I managed to create pending 'Review' by using octokit.
but got error while trying to add comment.user_id can only have one pending review per pull requestor it should use a different API?
RMacfarlane commented
on Oct 14, 2019 ContributorMore actionsAhmy Yulrizka (@yulrizka) It should be, though it's possible it's not in older versions.
There are several different versions of GitHub's API - the REST one that octokit uses (v3), and a new graphql one(v4). The v3 version doesn't support adding comments to pending reviews, you have to create the review all at once. So we're using the v4 version for adding pending comments instead:
async createComment(pullRequest: PullRequestModel, body: string, commentPath: string, position: number): Promise<IComment | undefined> { When the extension first starts, it tries to detect if the current repository supports the v4 API or not. Some things have been added to the v4 API over time, so what I'm not sure about is if there's a GitHub Enterprise version that has graphql support, but not that feature
Issue Type: Bug
I manually force the extension to use REST API on Enterprise. Review Comments are missing
Extension version: 1.31.0
VS Code version: Code - Insiders 1.31.0-insider (8f56013e8f66650c1b0b65cc5c502691e307db21, 2019-02-01T18:28:27.157Z)
OS version: Darwin x64 18.2.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled