Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix #3 Fix rate limit error #78

Closed
wants to merge 2 commits into from

Conversation

cyrmans
Copy link

@cyrmans cyrmans commented Aug 1, 2022

Use endpoint "/import/issues" to avoid rate limit errors
Related to issue #3

@gavinr gavinr self-requested a review August 2, 2022 03:15
@gavinr
Copy link
Owner

gavinr commented Aug 2, 2022

Thanks for the PR. I'll test it out.

import.js Outdated
}

// if we have an assignee column, pass that.
if (assigneeIndex > -1 && row[assigneeIndex] !== "") {
sendObj.assignees = row[assigneeIndex].replace(/ /g, "").split(",");
sendObj.issue.assignee = row[assigneeIndex].replace(/ /g, "").split(",");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not work. Try importing https://github.com/gavinr/github-csv-tools/blob/master/test/4.csv (change the username in the csv to your username). I get error:

message: 'Invalid request.\n' +
        '\n' +
        `For 'properties/assignee', ["MyUserName"] is not a string or null.`,

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the assignee problem and I test with all tests files.
All are OK (noTitle.csv return "Title required by GitHub, but not found in CSV.")

@gavinr gavinr self-requested a review August 16, 2022 23:57
@gavinr
Copy link
Owner

gavinr commented Aug 17, 2022

merged in #82. thanks

@gavinr gavinr closed this Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants