Keep reviews aligned with current pull request diffs - #211
Open
PeterDaveHello wants to merge 1 commit into
Open
Annotations
2 errors
|
Run anc95/ChatGPT-CodeReview@main
HttpError: Resource not accessible by integration
at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:3619:21
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:33938:18)
{
err: {
type: 'AggregateError',
message: '\n' +
' HttpError: Resource not accessible by integration\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:3619:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:33938:18)',
stack: 'AggregateError: \n' +
' HttpError: Resource not accessible by integration\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:3619:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:33938:18)\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:12925:19',
aggregateErrors: [
{
type: 'RequestError',
message: 'Resource not accessible by integration',
stack: 'HttpError: Resource not accessible by integration\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:3619:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:33938:18)',
name: 'HttpError',
status: 403,
response: {
url: 'https://api.github.com/repos/anc95/ChatGPT-CodeReview/pulls/211/reviews',
status: 403,
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, Warning',
connection: 'close',
'content-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Fri, 24 Jul 2026 20:28:41 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
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': 'D420:1B5F0A:384FC8:C72AEC:6A63CAF9',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4998',
'x-ratelimit-reset': '1784928509',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '2',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request',
status: '403'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/anc95/ChatGPT-CodeReview/pulls/211/reviews',
headers: {
accept: 'application/vnd.github.v3+json',
'user-ag
|
|
Run anc95/ChatGPT-CodeReview@main
Resource not accessible by integration
{
name: 'event',
id: '30124192765',
err: {
type: 'RequestError',
message: 'Resource not accessible by integration',
stack: 'HttpError: Resource not accessible by integration\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:3619:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:33938:18)',
name: 'HttpError',
status: 403,
response: {
url: 'https://api.github.com/repos/anc95/ChatGPT-CodeReview/pulls/211/reviews',
status: 403,
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, Warning',
connection: 'close',
'content-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Fri, 24 Jul 2026 20:28:41 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
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': 'D420:1B5F0A:384FC8:C72AEC:6A63CAF9',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4998',
'x-ratelimit-reset': '1784928509',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '2',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request',
status: '403'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/anc95/ChatGPT-CodeReview/pulls/211/reviews',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.3.0 octokit-core.js/3.6.0 Node.js/24',
authorization: 'bearer [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"body":"Code review by ChatGPT","event":"COMMENT","commit_id":"4eca2c1ac61d4b63928d2a8c34d0b9273edb5666","comments":[{"path":"action/src/bot.d.ts","body":"### Review Comments\\n\\n1. **Type Consistency**: Ensure that all types for the parameters and return values of public methods are consistent throughout the module. Unclear types can lead to runtime errors and maintenance difficulties.\\n\\n2. **Error Handling**: The functions seem to return `null` without any indication of why. Consider implementing a more robust error handling strategy that could include logging errors or throwing exceptions.\\n\\n3. **Unused Imports**: Double-check if the `Context` type is actually utilized in your code. If it’s imported but not used, it should be removed to keep the code clean.\\n\\n4. **Documentation**: Consider documenting public functions with comments or JSDoc-style annotations to describe their purpose and usage, especially since they have complex types. This will improve maintainability and usability.\\n\\n5. **Potential Edge Cases**: The functions `createInlineReviewComment` and `getReviewCommentLocation` need testing for edge cases, such as what happens when the provided parameters are undefined or unacceptable values.\\n\\n6. **Return Types**: Instead of returning pote
|
background
wait
wait-all
cancel
parallel
Loading