gavinr / github-csv-tools

Import and export GitHub issues via CSV
https://npmjs.com/github-csv-tools
MIT License
657 stars 116 forks source link

Importing milestones causes 'Validation Failed' error #57

Closed RJDan closed 3 years ago

RJDan commented 3 years ago

I get the error (below) when trying to import my csv with a milestone column. I have no errors when I remove the milestone column. The milestone already exists in my repo. Trying to use another existing milestone or a new milestone produces the same error.

RequestError [HttpError]: Validation Failed: {"value":"SprintJuly 1","resource":"Issue","field":"milestone","code":"invalid"}
at /usr/local/lib/node_modules/github-csv-tools/node_modules/ @octokit/request/dist-node/index.js:86:21
at processTicksAndRejections (internal/process/task_queues.js :97:5)
at async Job.doExecute (/usr/local/lib/node_modules/github-cs v-tools/node_modules/bottleneck/light.js:405:18) {

ethanstrominger commented 3 years ago

I get a different error: https://docs.github.com/rest/reference/issues#create-an-issue I am using "V0.1.1" not a number.

gavinr commented 3 years ago

Duplicate of #27

RJDan commented 3 years ago

I got it to work by changing the the field title from "milestone" to "milestones". "milestone" is the field that is exported from github so I thought to use that. On a whim I decided to try "milestones" and it worked without issue.

campaignupgrade commented 2 years ago

RJDan's solution worked for me.

Some CSV validation guidelines would be awesome in the readme.

lfoppiano commented 1 year ago

I had a similar issue and I had to rename also "Description" to "Body"