From b603307a9e30e8bb74773c354fc41e1c36983df9 Mon Sep 17 00:00:00 2001 From: NereusWB922 <107099783+NereusWB922@users.noreply.github.com> Date: Mon, 1 Apr 2024 13:05:42 +0800 Subject: [PATCH] Show PRs without milestone in "Currently Active" PRs without milestone requires urgent action from the user. Let's show it in the "Currently Active" preset view. --- src/app/core/services/filters.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/core/services/filters.service.ts b/src/app/core/services/filters.service.ts index 1a7541c3..1df13874 100644 --- a/src/app/core/services/filters.service.ts +++ b/src/app/core/services/filters.service.ts @@ -233,14 +233,14 @@ export class FiltersService { getMilestonesForCurrentlyActive(): Milestone[] { const earliestOpenMilestone = this.milestoneService.getEarliestOpenMilestone(); if (earliestOpenMilestone) { - return [earliestOpenMilestone]; + return [earliestOpenMilestone, Milestone.PRWithoutMilestone]; } const latestClosedMilestone = this.milestoneService.getLatestClosedMilestone(); if (latestClosedMilestone) { - return [latestClosedMilestone]; + return [latestClosedMilestone, Milestone.PRWithoutMilestone]; } - return this.milestoneService.milestones; + return [...this.milestoneService.milestones, Milestone.PRWithoutMilestone]; } }