Skip to content

Commit fa03af8

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

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
@@ -1072,6 +1072,10 @@ func newIssue(e *xorm.Session, doer *User, opts NewIssueOptions) (err error) {
10721072
if _, err = e.Exec("UPDATE `milestone` SET num_issues=num_issues+1 WHERE id=?", opts.Issue.MilestoneID); err != nil {
10731073
return err
10741074
}
1075+
1076+
if _, err = createMilestoneComment(e, doer, opts.Repo, opts.Issue, 0, opts.Issue.MilestoneID); err != nil {
1077+
return err
1078+
}
10751079
}
10761080

10771081
// Insert the assignees

0 commit comments

Comments
 (0)