microsoft / microsoft/CmdPalGitHubExtension

Missing Issues/PRs etc from private repositories

Open
#217 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C#
Stars
88
Forks
13
Avg merge
1h 1m
Merged PRs (30d)
1

Description

Hey there,

I love the extension so far except this one nasty little thing of not being able to see issues/prs/etc from private repos. First I thought this might be a problem on my login, so I tried it multiple times always with the same result. Issues of private repos wouldn't show up. So I did some digging and and testing with the source code locally.
All this seems to come from a misconfiguration of the client secrets.
When I started building locally I accidentally created a github app instead of github oauth app, after hours of digging and finding nothing which would explain why it wouldnt show private issues, I replaced the github app credentials with github oauth app credentials and zack it worked.
From the logs of the extensions it seems that oauth is indeed the wanted flow

[2025/04/20 08:56:05.686 INF] (DeveloperIdProvider) doluk logged in with OAuth flow to https://api.github.com/

If you look at the documentation for github apps https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28 , you notice it cant use the search endpoints authenticated and therefore would only show public results. OAuth apps on the other hand can use search endpoints authenticated and will return private repositories too

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the source code's client-secret configuration and the authentication path associated with the logged OAuth flow. Reproduce the issue with a private repository and compare GitHub App and OAuth App credentials; done means authenticated searches show private repository issues, pull requests, and related results.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, github
Domain
api, authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.