From d53bf337dcd0d949ae8d5e14dff15b6924b6e2d9 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 19 Dec 2024 16:28:59 -0800 Subject: [PATCH] demilestone should not include milestone --- services/issue/milestone.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/issue/milestone.go b/services/issue/milestone.go index ff645744a7..beb6f131a9 100644 --- a/services/issue/milestone.go +++ b/services/issue/milestone.go @@ -59,6 +59,10 @@ func changeMilestoneAssign(ctx context.Context, doer *user_model.User, issue *is } } + if issue.MilestoneID == 0 { + issue.Milestone = nil + } + return nil }