We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 36a3b77 + ac17416 commit 268138eCopy full SHA for 268138e
1 file changed
src/git/repository.ts
@@ -155,7 +155,11 @@ export async function getGitHubContext(): Promise<GitHubContext | undefined> {
155
try {
156
const git = await getGitExtension();
157
158
- const protocolInfos = await getGitHubUrls();
+ const allProtocolInfos = await getGitHubUrls();
159
+
160
+ // Filter out wiki repositories because the GET call will fail and throw an error
161
+ const protocolInfos = allProtocolInfos?.filter(info => !info.protocol.repositoryName.match(/\.wiki$/));
162
163
if (!protocolInfos) {
164
logDebug("Could not get protocol infos");
165
return undefined;
0 commit comments