summaryrefslogtreecommitdiffstats
path: root/models/issue_assignees.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_assignees.go')
-rw-r--r--models/issue_assignees.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/models/issue_assignees.go b/models/issue_assignees.go
index 70bed039c2..4d71cc6e51 100644
--- a/models/issue_assignees.go
+++ b/models/issue_assignees.go
@@ -120,9 +120,16 @@ func (issue *Issue) toggleAssignee(sess *xorm.Session, doer *User, assigneeID in
}
// Comment
- comment, err = createAssigneeComment(sess, doer, issue.Repo, issue, assigneeID, removed)
+ comment, err = createComment(sess, &CreateCommentOptions{
+ Type: CommentTypeAssignees,
+ Doer: doer,
+ Repo: issue.Repo,
+ Issue: issue,
+ RemovedAssignee: removed,
+ AssigneeID: assigneeID,
+ })
if err != nil {
- return false, nil, fmt.Errorf("createAssigneeComment: %v", err)
+ return false, nil, fmt.Errorf("createComment: %v", err)
}
// if pull request is in the middle of creation - don't call webhook