Skip to content

Commit cc6c8d1

Browse files
committed
Any other recipient?
1 parent afe2dee commit cc6c8d1

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

services/mailer/mail_workflow_run.go

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"sort"
1111

1212
actions_model "code.gitea.io/gitea/models/actions"
13-
"code.gitea.io/gitea/models/db"
1413
repo_model "code.gitea.io/gitea/models/repo"
1514
user_model "code.gitea.io/gitea/models/user"
1615
"code.gitea.io/gitea/modules/base"
@@ -155,18 +154,6 @@ func SendActionsWorkflowRunStatusEmail(ctx context.Context, sender *user_model.U
155154
}
156155
}
157156

158-
watchers, err := repo_model.GetRepoWatchers(ctx, repo.ID, db.ListOptionsAll)
159-
if err != nil {
160-
log.Error("GetWatchers: %v", err)
161-
}
162-
for _, watcher := range watchers {
163-
if watcher.ID == sender.ID {
164-
continue
165-
}
166-
if watcher.IsMailable() && watcher.EmailNotificationsPreference != user_model.EmailNotificationsOnMention &&
167-
watcher.EmailNotificationsPreference != user_model.EmailNotificationsDisabled {
168-
recipients = append(recipients, watcher)
169-
}
170-
}
157+
// TODO: Any other recipient?
171158
sendActionsWorkflowRunStatusEmail(ctx, repo, run, sender, recipients)
172159
}

0 commit comments

Comments
 (0)