lostintangent / gistpad

VS Code extension for managing and sharing code snippets, notes and interactive samples using GitHub Gists
https://aka.ms/gistpad
MIT License
944 stars 61 forks source link

Cannot put wiki repo under organization. #268

Open bigdrum opened 2 years ago

bigdrum commented 2 years ago

Describe the bug Currently the wiki mode require the repo to be owned by the login user directly: https://github.com/lostintangent/gistpad/blob/01a3ac2ae3a25f86d78eb09d7aeda3aeeba8ea97/src/repos/store/index.ts#L174

But I would like to have the wiki mode repo put under an organization.

Is it possible to relax this restriction?

bigdrum commented 2 years ago

Probably the logic can be changed to:

If there is only one repo "isWiki" then use it regardless the name. The name condition is only used for more than one repo case.

lostintangent commented 2 years ago

Yep this proposal makes sense! I'll make this change in the next extension update (later this week).