loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'fix(actions): no edited event triggered when a title is changed' (#4618) from twenty-panda/forgejo:wip-notify-title into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4618
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>

+11 -1
+11 -1
services/actions/notifier.go
··· 55 55 }).Notify(withMethod(ctx, "NewIssue")) 56 56 } 57 57 58 + func (n *actionsNotifier) IssueChangeTitle(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, _ string) { 59 + ctx = withMethod(ctx, "IssueChangeTitle") 60 + 61 + n.issueChange(ctx, doer, issue) 62 + } 63 + 58 64 // IssueChangeContent notifies change content of issue 59 - func (n *actionsNotifier) IssueChangeContent(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldContent string) { 65 + func (n *actionsNotifier) IssueChangeContent(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, _ string) { 60 66 ctx = withMethod(ctx, "IssueChangeContent") 61 67 68 + n.issueChange(ctx, doer, issue) 69 + } 70 + 71 + func (n *actionsNotifier) issueChange(ctx context.Context, doer *user_model.User, issue *issues_model.Issue) { 62 72 var err error 63 73 if err = issue.LoadRepo(ctx); err != nil { 64 74 log.Error("LoadRepo: %v", err)