Skip to content

Commit

Permalink
make call createMilestoneComment on newIssue func (#8678) (#8681)
Browse files Browse the repository at this point in the history
* make call createMilestoneComment on newIssue func

* make OldMilestoneID 0 instead of -1
  • Loading branch information
jaqra authored and zeripath committed Oct 25, 2019
1 parent 14ebda6 commit fa03af8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,10 @@ func newIssue(e *xorm.Session, doer *User, opts NewIssueOptions) (err error) {
if _, err = e.Exec("UPDATE `milestone` SET num_issues=num_issues+1 WHERE id=?", opts.Issue.MilestoneID); err != nil {
return err
}

if _, err = createMilestoneComment(e, doer, opts.Repo, opts.Issue, 0, opts.Issue.MilestoneID); err != nil {
return err
}
}

// Insert the assignees
Expand Down

0 comments on commit fa03af8

Please sign in to comment.