Skip to content

Commit b5c95a5

Browse files
feat(media-management): add Changelog and Discussion sections to media management pages
1 parent 1be3d39 commit b5c95a5

File tree

5 files changed

+1324
-1122
lines changed

5 files changed

+1324
-1122
lines changed

scripts/contentGeneration/processors/MediaManagementProcessor.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,21 @@ export class MediaManagementProcessor extends ContentProcessor {
7272
const entries: ContentEntry[] = [];
7373
const files = await source.listFiles('media_management', /\.ya?ml$/);
7474

75+
// Fetch commit logs for all files
76+
const commitLogs = await source.getFileCommitLogs(files);
77+
7578
for (const file of files) {
7679
const content = await source.readFile(file);
7780
if (content) {
7881
const entry = await this.process(content, {} as ProcessorConfig);
79-
if (entry) entries.push(entry);
82+
if (entry) {
83+
// Add commit log if available
84+
const commitLog = commitLogs.get(file);
85+
if (commitLog) {
86+
entry.commitLog = commitLog;
87+
}
88+
entries.push(entry);
89+
}
8090
}
8191
}
8292

0 commit comments

Comments
 (0)