diff options
Diffstat (limited to 'models/issue_milestone.go')
-rw-r--r-- | models/issue_milestone.go | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/models/issue_milestone.go b/models/issue_milestone.go index a4c2b4b062..e3cbb90624 100644 --- a/models/issue_milestone.go +++ b/models/issue_milestone.go @@ -386,7 +386,20 @@ func changeMilestoneAssign(e *xorm.Session, doer *User, issue *Issue, oldMilesto return err } - if _, err := createMilestoneComment(e, doer, issue.Repo, issue, oldMilestoneID, issue.MilestoneID); err != nil { + var opts = &CreateCommentOptions{ + Type: CommentTypeMilestone, + Doer: doer, + Repo: issue.Repo, + Issue: issue, + OldMilestoneID: oldMilestoneID, + MilestoneID: issue.MilestoneID, + } + comment, err := createCommentWithNoAction(e, opts) + if err != nil { + return err + } + + if err := sendCreateCommentAction(e, opts, comment); err != nil { return err } } |