Skip to content

Commit

Permalink
make call createMilestoneComment on newIssue func (#8678) (#8682)
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 1bcbc02 commit 76bbcf1
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 @@ -1102,6 +1102,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 76bbcf1

Please sign in to comment.