Add branch as a search filter #8564
Replies: 15 comments 35 replies
-
We've actually been discussing what the right UX should be, both for surfacing results from non-default branches and for restricting to particular branches. Certainly it seems that, for global or multi-repo searches, most users just expect to see the default branch. What use case do you have in mind? Something like a |
Beta Was this translation helpful? Give feedback.
-
How does code search handles search when |
Beta Was this translation helpful? Give feedback.
-
Hi all! I thought of this idea: Control access to the branches of each repository - What do you all think of this idea? ui/uxNotesWith the branch control, you can search by branch types: public, private. |
Beta Was this translation helpful? Give feedback.
-
Just here to 👍 indexing all branches. From search specification perspective I think it would be nice to be able to
|
Beta Was this translation helpful? Give feedback.
-
Is this part of the new search currently in technology preview? |
Beta Was this translation helpful? Give feedback.
-
Just saw new search hit public beta and was hoping this'd be one of the improvements, sadly not 😿 |
Beta Was this translation helpful? Give feedback.
-
This is useful to search for something in PRs when reviewing them. It could be reasonable to only make it available in non-stale branch, if indexing volume is a concern. |
Beta Was this translation helpful? Give feedback.
-
Was looking for how to search on a branch and I am very shocked github isn't capable of it |
Beta Was this translation helpful? Give feedback.
-
I literally was trying to roll out protection for our internal specifically named protected branches and wanted to make sure all branches in our org with this naming convention was protected. |
Beta Was this translation helpful? Give feedback.
-
Searching within a branch would be great. This is especially important with repos where the branches aren't necessarily the same content, such as gh-pages branches. A start would be letting us search the currently selected branch. FWIW, one solution to not having branch search is forking the repo and doing feature-branch work in the fork. This isn't always available though, especially if you care about maintaining the fork relationship on GH. It's easy to clone and push to a new repo, but that GH fork relationship is broken. |
Beta Was this translation helpful? Give feedback.
-
29 Jan 2024: I tried to use this feature (searching with |
Beta Was this translation helpful? Give feedback.
-
I can see how it wouldn't necessarily make sense to index all branches, when certain branches have a short time of life. Perhaps there could be an option to explicitly enable indexing on a per branch basis (where it would be automatically enabled on the main branch), which would then allow to filter results by branch... |
Beta Was this translation helpful? Give feedback.
-
I'd love to at least say the other important branches on a repo. |
Beta Was this translation helpful? Give feedback.
-
I was looking to search within a specific tagged release of our codebase. I started from a code view set to that tag, and was confused at first when search results were from the master branch, then was amazed to discover there is no feature at all to search the code at a specific tagged release. Please fix this. |
Beta Was this translation helpful? Give feedback.
-
Please implement this. You guys are Microsoft now... you basically have unlimited money to pay devs for this feature 😅 |
Beta Was this translation helpful? Give feedback.
-
It's super hard to search for something on a specific branch or tag. It would be great if we could have a filter for that.
Beta Was this translation helpful? Give feedback.
All reactions