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
{{ message }}
This repository was archived by the owner on May 20, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 20, 2026. It is now read-only.
github context provider: treats everything as an issue #223
The way this plugin works is that it checks to see if the URL you submitted is a issue first, then pull request, and then returns results based which is populated.
I noticed on my repo that it would mark PRs as issues because if you go to /issues/8, for example, it would redirect you to the PR page /pull/8 and would populate the necessary fields for issue and then return as an issue.
So I changed the order of this in provider.ts to flip this.
So that it correctly treats my PRs as PRs since we don't use github issues. I'm sure others would have this issue as well, so maybe you could change the way this part works since you're pulling both issue and PR in the block above it and maybe favor the PR format over the issue format since it's more comprehensive:
aah, I'm surpised it is behaving like this. In the past I remember GitHub's apis treating PRs as issues with extra stuff (which is why they share the same ID namespace and support redirects). Maybe there was a behaviour a change in the API, but either way what you suggest sounds good and cc @thenamankumar
Activity
keegancsmith commentedon Jan 15, 2025
aah, I'm surpised it is behaving like this. In the past I remember GitHub's apis treating PRs as issues with extra stuff (which is why they share the same ID namespace and support redirects). Maybe there was a behaviour a change in the API, but either way what you suggest sounds good and cc @thenamankumar