aboutsummaryrefslogtreecommitdiffstats
path: root/services/actions/notifier.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/actions/notifier.go')
-rw-r--r--services/actions/notifier.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/services/actions/notifier.go b/services/actions/notifier.go
index a4ebdf9e88..67e33e7cce 100644
--- a/services/actions/notifier.go
+++ b/services/actions/notifier.go
@@ -58,7 +58,15 @@ func (n *actionsNotifier) NewIssue(ctx context.Context, issue *issues_model.Issu
// IssueChangeContent notifies change content of issue
func (n *actionsNotifier) IssueChangeContent(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldContent string) {
ctx = withMethod(ctx, "IssueChangeContent")
+ n.notifyIssueChangeWithTitleOrContent(ctx, doer, issue)
+}
+
+func (n *actionsNotifier) IssueChangeTitle(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldTitle string) {
+ ctx = withMethod(ctx, "IssueChangeTitle")
+ n.notifyIssueChangeWithTitleOrContent(ctx, doer, issue)
+}
+func (n *actionsNotifier) notifyIssueChangeWithTitleOrContent(ctx context.Context, doer *user_model.User, issue *issues_model.Issue) {
var err error
if err = issue.LoadRepo(ctx); err != nil {
log.Error("LoadRepo: %v", err)