Use GitHub Issues and PRs for inference

I imagine that Cursor could do better inference by using (indexing) GitHub Issues and PRs for a codebase. It could be inferred via .git/config remotes.

In turn, perhaps Cursor could understand that the user’s current branch refers to a particular PR and weight accordingly.

Thanks for the consideration and correct me if this already exists.

2 Likes

Cool idea! While Cursor can already use git context through the @Git symbol in chat, having deeper GitHub integration could definitely make things even smarter

Being able to automatically pull in PR descriptions and issue context would be super helpful for understanding the codebase better. Right now you can manually reference these, but automatic indexing would be pretty powerful

If you’re interested in following feature updates, keep an eye on our changelog

1 Like

I strongly support this. Our use case is that we need to take the full description of the GH issue and then use that to frame our questions that we want to ask about the code.

Eventually, we also want to write the first version of a PR, straight from the GH issue.

It needs to index the entire issue including comments.

I am facing two issues when using @git.

First, not all PRs are showing when I do @git. I even tried the number for example typing @git, pressing enter, list some PRs, when I start typing the number it narrows it down. But many PRs doesn’t even show. For example in my case, I do have a PR 5786 in my git repo, but it doesn’t even show in the chat.

So, I manually checked out that branch, and did @PR(Diff with Main branch) and asked what all files are changed in this PR, there are 21 file changes but cursor listed only 5. I even said list .ts file changes, but all it says is there are only scss file changes and no ts changes