English 中文(简体)
为PR设计一个带有错误的“Pll_request_review_thread.end_commit_NS不是拉动要求的一部分”的审查评论
原标题:Create a review comment for a PR with Github api with error: "pull_request_review_thread.end_commit_oid is not part of the pull request"

我试图为一项与Github行动中的Github api的拉皮书提出审查意见,但我发现这一错误:“火力——重新要求——审查——准备——毒素不是拉动要求的一部分”。

URL:
https://api.github.com/repos/OWNER/REPO/pulls/3/comments
Body:
{"body": "Flutter analyze issue:
```
   info • Use  const  with the constructor to improve performance • lib/home.dart:8:12 • prefer_const_constructors
```", "commit_id": "bb806dd0b26205e617d6e35c8bc908d22faab", "path": "lib/home.dart", "line": 8, "side": "RIGHT"}
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
{
100   680  100   404  100   276    6[95](https://github.com/OWNER/REPO/actions/runs/5998169633/job/16265923679#step:3:109)    475 --:--:-- --:--:-- --:--:--  1172
  "message": "Validation Failed",
  "errors": [
    {
      "resource": "PullRequestReviewComment",
      "code": "custom",
      "field": "pull_request_review_thread.end_commit_oid",
      "message": "pull_request_review_thread.end_commit_oid is not part of the pull request"
    }
  ],
  "documentation_url": "https://docs.github.com/rest/pulls/comments#create-a-review-comment-for-a-pull-request"
}

*OWNER: The account owner of the repository. The name is not case sensitive. *REPO: The name of the repository without the .git extension. The name is not case sensitive.

问题回答

暂无回答




相关问题
GitHub SAML SSO ( cloud enterprise)

I wanted to integrate GitHub saml sso for the project. I have a custom IDP and from the SP initiated saml flow, like getting to the https://github.com/orgs/ORG-NAME/sso and then sso getting successful,...

How do I clone a github project to run locally?

I am trying to follow this railscast tutorial for authlogic - and it points to the source here - I have git installed - how do I replicate the source onto my localhost so that I can follow the ...

git push heroku master permission denied on VISTA

(Using Vista)I m trying to clone an app from my GitHub Repository and push it into Heroku. Okay, so I ve tried to create an SSH key so many times with this: `ssh-keygen -t rsa` It seems to go ...

SSH Public key denied on "git clone" command

I am trying to clone a git repo that I forked in my GitHub Repository.It s a rails app. I want to clone it on my local git so that I can push it onto heroku. I generated a set of rsa keys and copied ...

heroku using git branch is confusing!

Ok, so I have a big github project that i m not supposed to merge my little Stacia branch into. However, it seems like Heroku only takes pushing MASTER seriously. It looks like I pushed my branch, but ...

热门标签