Change default Pull Request filter #51751
Replies: 30 comments 2 replies
-
|
Very keen on this |
Beta Was this translation helpful? Give feedback.
-
|
Would be really nice, especially when working in a mono repo with lots of Pull Requests and issues |
Beta Was this translation helpful? Give feedback.
-
|
Hiding drafts is for instance something I'd like to switch on: |
Beta Was this translation helpful? Give feedback.
-
|
I think it's an essential quality-of-life feature. You should be able to specify a default search query in "Pull requests". |
Beta Was this translation helpful? Give feedback.
-
|
Yes, please. Really need the ability to set default filters. |
Beta Was this translation helpful? Give feedback.
-
|
Would love this! |
Beta Was this translation helpful? Give feedback.
-
|
Yes, would love this! |
Beta Was this translation helpful? Give feedback.
-
|
https://github.com/rbeauchemin/github-filter |
Beta Was this translation helpful? Give feedback.
-
|
Default would be great, and having custom presets in the drop-down would also be nice. I currently work around this with browser bookmarks. |
Beta Was this translation helpful? Give feedback.
-
|
Would be nice, as being able to hide draft PRs by default would be handy. |
Beta Was this translation helpful? Give feedback.
-
|
I was looking for this functionality and came across this thread, I decided to create a very simple tampermonkey script to apply my preferred filters to |
Beta Was this translation helpful? Give feedback.
-
|
100% support this change in functionality! |
Beta Was this translation helpful? Give feedback.
-
|
As someone who reviews a lot of PRs and has very particular label filtering setup, this would be great! |
Beta Was this translation helpful? Give feedback.
-
|
I liked @blakethomp's band-aid fix, but didn't work for me for some URLs and depending on the source of the anchor tag, how the I use mine as an Arc Boost, but there's no reason it wouldn't also work as a ViolentMonkey/TamperMoney script. You can adjust the new query to your liking. const DEFAULT_FILTERS = ["is:pr", "is:open", "draft:false"];
const updateAnchor = (element) => {
const href = element.getAttribute("href")
if (!href || !href.startsWith("/")) return
const url = new URL(href, window.location.origin)
if (!url.pathname.endsWith("/pulls")) return
const query = url.searchParams.get("q")?.split(" ")
if (!query) {
url.searchParams.set("q", DEFAULT_FILTERS.join(" "))
element.setAttribute("href", url.href)
return
}
if (!query.includes("is:open") || query.includes("draft:false")) return
query.push("draft:false")
url.searchParams.set("q", query.join(" "))
element.setAttribute('href', url.href)
}
const updateAll = () => {
const elements = document.querySelectorAll('a[href]')
for (const element of elements) updateAnchor(element)
}
const observe = (mutations) => {
for (const mutation of mutations) {
switch (mutation.type) {
case "childList":
for (const node of mutation.addedNodes) {
if (node.nodeType !== Node.ELEMENT_NODE) continue
if (node.tagName === 'A') updateAnchor(node)
for (const anchor of node.querySelectorAll('a[href]')) updateAnchor(anchor)
}
break;
case "attributes":
if (mutation.attributeName !== "href") break
updateAnchor(mutation.target)
break
default:
}
}
}
const observer = new MutationObserver(observe)
observer.observe(document.documentElement, {
childList: true,
subtree: true,
attributes: true,
attributeFilter: ['href']
})
document.addEventListener("DOMContentLoaded", updateAll) |
Beta Was this translation helpful? Give feedback.
-
|
It would be nice to be able to set default PRs filter to a |
Beta Was this translation helpful? Give feedback.
-
|
for us is the ability to only filter pull requests to the default branch |
Beta Was this translation helpful? Give feedback.
-
|
PLEASE this would be legendary |
Beta Was this translation helpful? Give feedback.
-
|
I’d really appreciate this. Draft PRs are often used just to inspect the diff, and reviews usually aren’t needed until they’re marked as ready |
Beta Was this translation helpful? Give feedback.
-
|
The new UI updates are great. Disappointed that being able to save a default filter was not included! Please at least hide drafts by default.. |
Beta Was this translation helpful? Give feedback.
-
|
Adding another voice to asking for this feature. I'd particularly like to be able to have a default sort so that the PRs appear with oldest first instead of last as older PRs tend to get buried by the new: |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
pls |
Beta Was this translation helpful? Give feedback.
-
|
Would be nice if this is implemented, either draft hidden as default or being able to create our own 'default' filter |
Beta Was this translation helpful? Give feedback.
-
|
I too would appreciate this functionality 🙇 |
Beta Was this translation helpful? Give feedback.
-
|
Would also love this. Any movement? |
Beta Was this translation helpful? Give feedback.
-
|
+1, love this. |
Beta Was this translation helpful? Give feedback.
-
|
+1 , it would be a great improvement. |
Beta Was this translation helpful? Give feedback.
-
|
please implement |
Beta Was this translation helpful? Give feedback.
-
|
+1, it would be a helpful! |
Beta Was this translation helpful? Give feedback.
-
|
+1, i would set the default to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
I'd like to be able to change the default filter of Pull Requests page.
Default is "is:pr is:open " and although I can change the filter, each time I refresh the page it gets back to the default.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions