You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume a GitHub organization named foo which owns a repository named bar.
Entering a malformed repo name like bar, instead of the full foo/bar like this:
? From which repo do you want to import issues from (e.g. "facebook/react") bar
produces an infinite stream of the following error:
Error: Unable to find repo bar/undefined. Did you select `repo` scope for your GitHub token?
at GithubImporter.<anonymous> (/nix/store/y9r60ar88lwq6a21q0ff7qnvl4ch0gb2-linear-import/share/importer/dist/cli.js:409:31)
at Generator.next (<anonymous>)
at fulfilled (/nix/store/y9r60ar88lwq6a21q0ff7qnvl4ch0gb2-linear-import/share/importer/dist/cli.js:69:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I did grant the repo scope. It strikes me that the import tool could detect that the string I entered was parsed as the org name and that the repo name is undefined, and produce a nicer error.
The text was updated successfully, but these errors were encountered:
grahamc
changed the title
Malformed repo names produces a misleading error
Malformed repo names produces a misleading error in the GitHub importer
Apr 12, 2022
Hey, this seems like a valid bug but I'm curious why you'd enter just bar when the example text clearly shows the <org>/<repo> format? (facebook/react)
Assume a GitHub organization named
foo
which owns a repository namedbar
.Entering a malformed repo name like
bar
, instead of the fullfoo/bar
like this:produces an infinite stream of the following error:
I did grant the
repo
scope. It strikes me that the import tool could detect that the string I entered was parsed as the org name and that the repo name is undefined, and produce a nicer error.The text was updated successfully, but these errors were encountered: