Skip to content

No start_line/line in GHPullRequestReviewComment #1463

@turbanoff

Description

@turbanoff

Describe the bug
https://docs.github.com/en/rest/pulls/comments#get-a-review-comment-for-a-pull-request
Github states that review comment has following fields:

 "start_line": {
        "type": [
          "integer",
          "null"
        ],
        "description": "The first line of the range for a multi-line comment.",
        "examples": [
          2
        ]
      },
      "original_start_line": {
        "type": [
          "integer",
          "null"
        ],
        "description": "The first line of the range for a multi-line comment.",
        "examples": [
          2
        ]
      },
      "start_side": {
        "type": [
          "string",
          "null"
        ],
        "description": "The side of the first line of the range for a multi-line comment.",
        "enum": [
          "LEFT",
          "RIGHT",
          null
        ],
        "default": "RIGHT"
      },
      "line": {
        "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
        "type": "integer",
        "examples": [
          2
        ]
      },
      "original_line": {
        "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
        "type": "integer",
        "examples": [
          2
        ]
      },

But there are no such fields in current API (class GHPullRequestReviewComment)

Expected behavior
GHPullRequestReviewComment contains all fields which are provided by GitHub

Additional context
Thank you for wonderful library! ❤️

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions