Closed Daniel15 closed 5 years ago
Actually ignore me, I think this was just me not configuring the permissions properly. It worked the second time I tried.
Glad you figured it out and thanks for letting me know.
Actually ignore me, I think this was just me not configuring the permissions properly. It worked the second time I tried.
Well, this tool could document what permissions are needed. write:discussion
and repo:status
are not enough. It worked for me with repo, write:discussion
. I'm PRing a tentative documentation fix.
Also, the error-reporting code gives a misleading message (altho it doesn't have extra info).
if gh_repo_status == 401:
raise RuntimeError("Failed to login to GitHub.")
elif gh_repo_status == 403:
raise RuntimeError(
"GitHub login succeeded, but user '{}' either doesn't have "
"permission to access the repo at: {}\n"
"or is over their GitHub API rate limit.\n"
"You can read more about GitHub's API rate limiting policies here: "
"https://developer.github.com/v3/#rate-limiting"
.format(options.github_username, gh_repo_url)
)
elif gh_repo_status == 404:
raise RuntimeError("Could not find a GitHub repo at: " + gh_repo_url)
EDIT: forgot an important thing: thanks for this very useful tool!
I get this error when I try to import into a private repo:
It works fine for public repos, so I just temporarily made my repo public in order to import the issues.
Now that Github allows everyone to have private repos (even free users), this should be easy to replicate.