diff options
Diffstat (limited to 'models/issue_label.go')
-rw-r--r-- | models/issue_label.go | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/models/issue_label.go b/models/issue_label.go index 497756af5b..77281e9bd4 100644 --- a/models/issue_label.go +++ b/models/issue_label.go @@ -402,7 +402,14 @@ func newIssueLabel(e *xorm.Session, issue *Issue, label *Label, doer *User) (err return } - if _, err = createLabelComment(e, doer, issue.Repo, issue, label, true); err != nil { + if _, err = createComment(e, &CreateCommentOptions{ + Type: CommentTypeLabel, + Doer: doer, + Repo: issue.Repo, + Issue: issue, + Label: label, + Content: "1", + }); err != nil { return err } @@ -471,7 +478,13 @@ func deleteIssueLabel(e *xorm.Session, issue *Issue, label *Label, doer *User) ( return } - if _, err = createLabelComment(e, doer, issue.Repo, issue, label, false); err != nil { + if _, err = createComment(e, &CreateCommentOptions{ + Type: CommentTypeLabel, + Doer: doer, + Repo: issue.Repo, + Issue: issue, + Label: label, + }); err != nil { return err } |