misc: include attachments in grepped strings (#87783)
gitea/wcs/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2024-03-05 13:53:14 +01:00
parent 00584bff12
commit c03d216a70
2 changed files with 2 additions and 0 deletions

View File

@ -184,6 +184,7 @@ class RegisterCommenterWorkflowStatusItem(WorkflowStatusItem):
yield from super().get_computed_strings()
if not self.comment_template:
yield self.comment
yield from (self.attachments or [])
def migrate(self):
changed = super().migrate()

View File

@ -238,6 +238,7 @@ class SendmailWorkflowStatusItem(WorkflowStatusItem):
yield self.body
if self.to:
yield from self.to
yield from (self.attachments or [])
def perform(self, formdata, ignore_i18n=False):
if not self.to: