parent
835ba9ef06
commit
37ce028e7c
@ -17,9 +17,11 @@ const getModChangesFormatting: (commits: Commit[]) => SpecialChangelogFormatting
|
||||
return {
|
||||
formatting: (message, subMessage, indentation, commits) => {
|
||||
// Sub messages are details, so make them bold & italic
|
||||
if (subMessage) {
|
||||
return `${indentation}* ***${message}***`;
|
||||
}
|
||||
if (subMessage) return `${indentation}* ***${message}***`;
|
||||
|
||||
// Edge Case
|
||||
if (!commits) return `${indentation}* ${message}`;
|
||||
|
||||
if (commits.length > 1) {
|
||||
const authors: string[] = [];
|
||||
const formattedCommits: string[] = [];
|
||||
|
@ -30,12 +30,11 @@ export async function createModList(tag = ""): Promise<ModFileInfo[]> {
|
||||
// Fetch mod/addon & file infos, discard result. Further calls will hit cache.
|
||||
await fetchProjectsBulk(manifest.files.map((mod) => mod.projectID));
|
||||
await fetchFilesBulk(
|
||||
// Use this instead of referencing the original array, as .sort sorts the input array
|
||||
[...manifest.files]
|
||||
.sort((a, b) => a.fileID - b.fileID)
|
||||
manifest.files
|
||||
.map((mod) => {
|
||||
return { projectID: mod.projectID, fileID: mod.fileID };
|
||||
}),
|
||||
})
|
||||
.sort((a, b) => a.fileID - b.fileID),
|
||||
);
|
||||
|
||||
log("Fetched Infos. Creating modlist...");
|
||||
|
Loading…
x
Reference in New Issue
Block a user