Skip to content

Commit 76bbcf1

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

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
@@ -1102,6 +1102,10 @@ func newIssue(e *xorm.Session, doer *User, opts NewIssueOptions) (err error) {
11021102
if _, err = e.Exec("UPDATE `milestone` SET num_issues=num_issues+1 WHERE id=?", opts.Issue.MilestoneID); err != nil {
11031103
return err
11041104
}
1105+
1106+
if _, err = createMilestoneComment(e, doer, opts.Repo, opts.Issue, 0, opts.Issue.MilestoneID); err != nil {
1107+
return err
1108+
}
11051109
}
11061110

11071111
// Insert the assignees

0 commit comments

Comments
 (0)