-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "no label" and "no milestone" filters #3407
Comments
Yes, we need this. It would be such a time saver! |
Any progress on this? Is there a workaround? Can I use the API to list the no-label and no-milestone issues or something? |
Nobody are working on this I think. |
Shame, it would be very useful. I have found a way to do it with the API and the Linux JSON parser
This will list the issue numbers of all issues with no labels. It can quite easily be modified to work with milestones rather than labels. |
It's likely a very easy pr... |
Maybe if you've got a dev env set up and are familiar with go and gitea ;) I'm thinking it would be much easier for me to extend the script to use the API to add a "needs attention" label to all the issues with no label OR milestone. If I did that, could I add it to Gitea as a maintenance task or hook somehow without having to modify the code? (or cron it lol) |
This feature would be very nice to have... |
Also "no assignee" would be very helpfull. |
Hello Could try this patch
and in custom/templates/footer.tmpl add below script var btn, a;
if (btn = document.querySelector(".label-filter a")) {
a = document.createElement("a");
a.className = "item";
a.textContent = "No labels";
a.addEventListener("click", function() {
const labelids = "-"+ [...document.querySelectorAll(".label-filter-item")].map(function(i) { return i.getAttribute("data-label-id"); }).join(",-");;
var labelsurl = "labels=", labelpos;
if ((labelpos = location.search.indexOf(labelsurl)) > 0) {
labelsurl = location.search.slice(labelpos);
if ((labelpos = labelsurl.indexOf("&")) > 0)
return location.search = location.search.replace(labelsurl.slice(0, labelpos), "labels="+ labelids);
return location.search = location.search.replace(labelsurl, "labels="+ labelids);
}
return location.search += (location.search.indexOf("?") == -1 ? "?" : "&") + labelsurl + labelids;
});
btn.parentNode.insertBefore(a, btn.nextSibling);
}
if (btn = document.querySelector(".assignee-filter a")) {
a = document.createElement("a");
a.className = "item";
a.textContent = "No assignees";
a.addEventListener("click", function() {
const assigneeids = "-"+ [...document.querySelectorAll(".assignee-filter-item")].map(function(i) { return i.getAttribute("data-assignee-id"); }).join(",-");
var assigneeurl = "assignee=", assigneepos;
if ((assigneepos = location.search.indexOf(assigneeurl)) > 0) {
assigneeurl = location.search.slice(assigneepos);
if ((assigneepos = assigneeurl.indexOf("&")) > 0)
return location.search = location.search.replace(assigneeurl.slice(0, assigneepos), "assignee="+ assigneeids);
return location.search = location.search.replace(assigneeurl, "assignee="+ assigneeids);
}
return location.search += (location.search.indexOf("?") == -1 ? "?" : "&") + assigneeurl + assigneeids;
});
btn.parentNode.insertBefore(a, btn.nextSibling);
} |
[x]
): N/ADescription
I am a project manager triaging issues. I want to filter for all issues without any label, and for all issues without any milestone, so that I know which issues I haven't yet triaged.
Related Gogs issues:
Suggested solution
The text was updated successfully, but these errors were encountered: