-
-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Labels
bugSomething isn't workingSomething isn't working
Description
🐞 Bug report
Description
Import of code-review.csv.github.csv fails due to wrong column name ("description" instead of "body") in header line.
Reproduction
- Create a code review as described here
- Export the code review as GitHub importable CSV file as described here
- (Try to) import the contents of the GitHub importable CSV file using
github-csv-toolsas described here
Error message
RequestError [HttpError]: Validation Failed: {"resource":"Issue","code":"missing_field","field":"body"}
at /usr/local/lib/node_modules/github-csv-tools/node_modules/@octokit/request/dist-node/index.js:122:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Job.doExecute (/usr/local/lib/node_modules/github-csv-tools/node_modules/bottleneck/light.js:405:18) {
status: 422,
response: {
url: 'https://gitext.elektrobitautomotive.com/api/v3/repos/thga2649/unix_domain_sockets_unlink_experiments/import/issues',
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',
'content-length': '175',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Fri, 06 Dec 2024 15:19:20 GMT',
'github-authentication-token-expiration': '2025-01-04 15:25:55 UTC',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains',
'x-accepted-oauth-scopes': '',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-enterprise-version': '3.12.6',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '95476865-cef6-4091-8799-a10f73c48f9f',
'x-oauth-scopes': 'repo',
'x-xss-protection': '0'
},
data: {
message: 'Validation Failed',
errors: [Array],
documentation_url: 'https://docs.github.com/enterprise-server@3.12/rest'
}
},
request: {
method: 'POST',
url: 'https://gitext.elektrobitautomotive.com/api/v3/repos/thga2649/unix_domain_sockets_unlink_experiments/import/issues',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'github-csv-tools octokit-rest.js/19.0.13 octokit-core.js/4.2.4 Node.js/20.18.1 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"issue":{"title":"[code review] Missing const","labels":["code-review"]}}',
request: { hook: [Function: bound bound register] }
}
}
🌍 Your Environment
Edition Windows 11 Enterprise
Version 23H2
Installed on 18/06/2024
OS build 22631.4169
Experience Windows Feature Experience Pack 1000.22700.1034.0
WSL2 with Ubuntu 20.04
Root cause
github-csv-tools has changed the naming of one column in the CSV files from "description" to "body" with PR #39.
Suggested fix
Change the naming of the column in the created GitHub importable CSV file accordingly, i.e., change "description" to "body" in this location.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working