ci / module boundaries / boundaries (push) Successful in 7s
ci / mobile / mobile (Metro-бандл Android) (push) Successful in 1m2s
ci / ts / ts (packages + web) (push) Successful in 3m8s
ci / desktop / rust (desktop proxy) (push) Successful in 4m21s
release / release (версия и заметки) (push) Successful in 6s
release / android (APK в релиз) (push) Successful in 4m0s
release / desktop (Linux и Windows в релиз) (push) Successful in 11m49s
release / prune (старые файлы и прогоны) (push) Successful in 5s
Clean release notes in Android and desktop update dialogs. Persist downloaded audio and offline playback events per server and user; add desktop update checks, checksum verification and installer launch.
17 lines
667 B
TypeScript
17 lines
667 B
TypeScript
/** Release bodies also contain CI build reports; these are not user-facing notes. */
|
|
export function releaseNotesText(markdown: string): string {
|
|
return markdown
|
|
.replace(/<!--\s*([\w-]+-status)\s*-->[\s\S]*?<!--\s*\/\1\s*-->/gi, '')
|
|
.replace(/<!--[\s\S]*?-->/g, '')
|
|
.replace(/^\s*```[^\n]*\n[\s\S]*?^\s*```\s*$/gm, '')
|
|
.replace(/^\s{0,3}#{1,6}\s+/gm, '')
|
|
.replace(/^\s*>\s?/gm, '')
|
|
.replace(/!\[([^\]]*)\]\([^)]*\)/g, '$1')
|
|
.replace(/\[([^\]]+)\]\([^)]*\)/g, '$1')
|
|
.replace(/(`+)(.*?)\1/g, '$2')
|
|
.replace(/\*\*(.*?)\*\*|__(.*?)__/g, '$1$2')
|
|
.replace(/^\s*[-*+]\s+/gm, '• ')
|
|
.replace(/\n{3,}/g, '\n\n')
|
|
.trim();
|
|
}
|