diff --git a/Sources/ReporterCore/Configuration.swift b/Sources/ReporterCore/Configuration.swift index 26d619c..5af9a64 100644 --- a/Sources/ReporterCore/Configuration.swift +++ b/Sources/ReporterCore/Configuration.swift @@ -46,6 +46,8 @@ struct Configuration: Codable { let from: User let to: [User] + let subject: String? + } struct Policy: Codable { diff --git a/Sources/ReporterCore/Reporter.swift b/Sources/ReporterCore/Reporter.swift index f2f528b..fb91508 100644 --- a/Sources/ReporterCore/Reporter.swift +++ b/Sources/ReporterCore/Reporter.swift @@ -297,7 +297,7 @@ public class Reporter { let mail = Mail( from: .init(configuration.email.from), to: configuration.email.to.map({ Mail.User($0) }), - subject: "Change Report", + subject: configuration.email.subject ?? "Change Report", text: summary, attachments: [.init(htmlContent: htmlSummary)] )