demilestone should not include milestone

This commit is contained in:
Lunny Xiao 2024-12-19 16:28:59 -08:00
parent f47fb4fbaf
commit d53bf337dc
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ func changeMilestoneAssign(ctx context.Context, doer *user_model.User, issue *is
} }
} }
if issue.MilestoneID == 0 {
issue.Milestone = nil
}
return nil return nil
} }