Skip to content

Commit

Permalink
fix: Support custom report subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley committed Feb 22, 2025
1 parent 861882a commit b764027
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Sources/ReporterCore/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ struct Configuration: Codable {
let from: User
let to: [User]

let subject: String?

}

struct Policy: Codable {
Expand Down
2 changes: 1 addition & 1 deletion Sources/ReporterCore/Reporter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
)
Expand Down

0 comments on commit b764027

Please sign in to comment.