Skip to content

Commit fc0580a

Browse files
jaqrazeripath
jaqra
authored andcommitted
make call createMilestoneComment on newIssue func (#8678)
* make call createMilestoneComment on newIssue func * make OldMilestoneID 0 instead of -1
1 parent a520236 commit fc0580a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

models/issue.go

+4
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,10 @@ func newIssue(e *xorm.Session, doer *User, opts NewIssueOptions) (err error) {
970970
if _, err = e.Exec("UPDATE `milestone` SET num_issues=num_issues+1 WHERE id=?", opts.Issue.MilestoneID); err != nil {
971971
return err
972972
}
973+
974+
if _, err = createMilestoneComment(e, doer, opts.Repo, opts.Issue, 0, opts.Issue.MilestoneID); err != nil {
975+
return err
976+
}
973977
}
974978

975979
// Insert the assignees

0 commit comments

Comments
 (0)