Title: Wrong endpoint for listing comments · Issue #644 · actions/github-script · GitHub
Open Graph Title: Wrong endpoint for listing comments · Issue #644 · actions/github-script
X Title: Wrong endpoint for listing comments · Issue #644 · actions/github-script
Description: Hello, I'm using this: const { owner, repo } = context.repo; const issue_number = context.issue.number; const comments = await github.paginate(github.rest.issues.listComments, { owner, repo, issue_number, per_page: 100 }); And it crashes...
Open Graph Description: Hello, I'm using this: const { owner, repo } = context.repo; const issue_number = context.issue.number; const comments = await github.paginate(github.rest.issues.listComments, { owner, repo, issue_...
X Description: Hello, I'm using this: const { owner, repo } = context.repo; const issue_number = context.issue.number; const comments = await github.paginate(github.rest.issues.listComments, { owner, repo, is...
Opengraph URL: https://github.com/actions/github-script/issues/644
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong endpoint for listing comments","articleBody":"Hello,\n\nI'm using this:\n```\nconst { owner, repo } = context.repo;\nconst issue_number = context.issue.number;\nconst comments = await github.paginate(github.rest.issues.listComments, { owner, repo, issue_number, per_page: 100 });\n```\nAnd it crashes with:\n```\nRun actions/github-script@v7\n \nRequestError [HttpError]: Not Found\n at /home/runner/work/_actions/actions/github-script/v6/dist/index.js:6842:21\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:15143:16), \u003canonymous\u003e:10:3)\n at async main (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:15236:20) {\n status: 404,\n response: {\n url: 'https://api.github.com/repos/{ORG}/{REPO}/comments/',\n status: 404,\n headers: {\n 'access-control-allow-origin': '*',\n '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',\n...\n```\nI've elided ORG and REPO because they're not important. The important part is the trailing slash at the end of the `url`, which yields a 404. Without the trailing `/` i.e. 'https://api.github.com/repos/{ORG}/{REPO}/comments', the API doesn't answer 404","author":{"url":"https://github.com/giltho","@type":"Person","name":"giltho"},"datePublished":"2025-08-15T16:55:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/644/github-script/issues/644"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:affba4c5-a888-1dbd-0adb-3260b34d05d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9E6:2D6BC4:3D70043:5298E21:69708295 |
| html-safe-nonce | 3bd0f1b735f235c062f6ae1c49d4012f53c2c5a825e71508b4ab99bd3a3c707b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUU2OjJENkJDNDozRDcwMDQzOjUyOThFMjE6Njk3MDgyOTUiLCJ2aXNpdG9yX2lkIjoiMTE4MzA5MjMwMzAxMDQ5NzE3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4ee0497b167a4fd78e7860ed815e5bb4e1e77c5652a56017c4d1c588a2c8c7f7 |
| hovercard-subject-tag | issue:3325791521 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/github-script/644/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7969f9edad08de26adcd6da472ac3be3dfbe0c786301ee60bfeec657c57b8719/actions/github-script/issues/644 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7969f9edad08de26adcd6da472ac3be3dfbe0c786301ee60bfeec657c57b8719/actions/github-script/issues/644 |
| og:image:alt | Hello, I'm using this: const { owner, repo } = context.repo; const issue_number = context.issue.number; const comments = await github.paginate(github.rest.issues.listComments, { owner, repo, issue_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | giltho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/github-script git https://github.com/actions/github-script.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 205262760 |
| octolytics-dimension-repository_nwo | actions/github-script |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205262760 |
| octolytics-dimension-repository_network_root_nwo | actions/github-script |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width