anc95 / anc95/ChatGPT-CodeReview

在action执行过程中有报错,action已完成但没有评论

Open
#203 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
4.5k
Forks
461
PR merge metrics
No merged PRs in 30d

Description

使用的是deepseel的api,似乎是评论在了不属于本次commit中的代码行?我不太清楚,如果需要的话我可以提供更多补充~辛苦作者帮忙解答一下

code-review cost: 57.264s
code-review cost: 1:07.178 (m:ss.mmm)
code-review cost: 37.587s
code-review cost: 51.052s
Failed to create review RequestError [HttpError]: Unprocessable Entity: "Position could not be resolved"
at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:3619:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:34577:18) {
status: 422,
response: {
url: 'https://api.github.com/repos/lucien299/lucien-framework/pulls/5/reviews',
status: 422,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
connection: 'close',
'content-length': '193',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 21 Jan 2026 10:13:05 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'pull_requests=write',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': 'F838:A40F6:3BA6A0:FD18B5:6970A6B0',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4998',
'x-ratelimit-reset': '1768993771',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '2',
'x-xss-protection': '0'
},
data: {
message: 'Unprocessable Entity',
errors: [Array],
documentation_url: 'https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request',
status: '422'
}
},

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the workflow for pull request #5 and inspect action/index.cjs around lines 3619 and 34577, where the GitHub review request fails. Check the GitHub create-review API response and the review position data; done means the action handles this case without losing the review comments.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, javascript
Domain
api, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.